Install ASP.NET 4.0 with ASP.NET 2.0 on IIS6

I read where you create a new application pool, one for 2.0 sites and one for 4.0 sites. But there is no option that I see when creating a pool to configure the framework.

My problem is that I have several sites based on the default website. I added the WCF 4.0 service to the new virtual directory and installed the framework in 4.0. I also added it to a separate application pool.

Now I can get only one worker. Either 2.0 sites, or site 4.0. I get:

It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process.

Is it possible to do this in IIS6 and Windows Server 2003?

+5
source share
2 answers

To clarify: each application pool is bound to the .NET platform on the first website that uses it, in the order in which the application starts. This first site will work fine, but all other sites will be limited to the same application pool. You need at least one application pool for each version of the framework; and, in my experience, the most reliable setup is one application pool for each application. Thus, you can switch the version of the framework without worrying about other applications, and you can kill individual applications through the task manager when the need arises.

+12
source

, , 2.0 , 4.0 .

+3

All Articles