How to rewrite to a virtual directory with a different application

Posted by Eytan Levit on Stack Overflow See other posts from Stack Overflow or by Eytan Levit
Published on 2010-05-04T12:39:39Z Indexed on 2010/05/04 13:08 UTC
Read the original article Hit count: 268

Filed under:
|
|
|

Hi,

I have a CMS application that manages multiple websites, today whenever i change the codebehind of one of these websites - i have to rebuild the dll for all websites, deploy it - this disconnects all current sessions and is really bad.

The iis is configured to listen to all domain requests, if the request is to one of the websites' domain , the application rewrites it, or example, if someone requests for http://www.example.com, and example.com is configured in the application to be website 12, it is rewritten to http://www.example.com/websites/12/default.aspx.

This is done for all websites.

We want to seperate the dlls of the websites from each other, and from the main CMS, we have a virtual directory to each websites, but when trying to rewrite to it, we discover that IIS support this (we get an "Could not load type '_12._Default'". error).

How can we perform this rewrite so it does rewrite to virtual directories, or if anyone has any other solution for the initial dll seperation problem.

Thanks in advance

© Stack Overflow or respective owner

How to rewrite to a virtual directory with a different application

Posted by user42181 on Server Fault See other posts from Server Fault or by user42181
Published on 2010-05-04T12:58:04Z Indexed on 2010/05/04 13:08 UTC
Read the original article Hit count: 268

Filed under:
|
|

Hi,

I have a CMS application that manages multiple websites, today whenever i change the codebehind of one of these websites - i have to rebuild the dll for all websites, deploy it - this disconnects all current sessions and is really bad.

The iis is configured to listen to all domain requests, if the request is to one of the websites' domain , the application rewrites it, or example, if someone requests for www.example.com, and example.com is configured in the application to be website 12, it is rewritten to www.example.com/websites/12/default.aspx.

This is done for all websites.

We want to seperate the dlls of the websites from each other, and from the main CMS, we have a virtual directory to each websites, but when trying to rewrite to it, we discover that IIS support this (we get an "Could not load type '_12._Default'". error).

How can we perform this rewrite so it does rewrite to virtual directories, or if anyone has any other solution for the initial dll seperation problem.

Thanks in advance

© Server Fault or respective owner

Related posts about ASP.NET

Related posts about rewrite