Wednesday, April 23, 2008

Running Both Asp.net 2.0 and 1.x on same domain

This is how it goes, a stable website using ASP.net 1.1 needed some new modules.

We decided to go with 2.0 for the new modules as a first step towards upgrading ( 1.1 is almost legacy now )

The mosule was written , and was ready to be deployed , when boom the domain went down..

1) You cannot run both 1.1 and 2.0 on the same worker process.
2) Each Application pool gets a separate process
3) You can set an application ( virtual directory ) to use a particular application
pool and ASP.net version..

From the above ,

1) Create a new application pool.
2) Create a new virtual directory to hold the 2.0 sources
3) Set the application pool property to the newly created app pool
4) Set the asp.net version to 2.0

Bingo..

No comments: