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

喜夏-厌秋 提交于 2019-12-13 13:17:38

问题


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

My problem is I have several 2.0 sites running as the Default Web Site. I added a WCF 4.0 service under a new virtual directory and set the framework to 4.0. I also put it in a separate app pool.

Now, I can only get one working at a time. Either the 2.0 sites or the 4.0 site. 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 under IIS6 and Windows Server 2003?


回答1:


To clarify: Each app pool binds to the .NET framework of the first web site that uses it, in order of application startup. That first site will run fine, but all other sites will be restricted to the same app pool. You need at least one app pool per framework version; and in my experience, the most robust setup is one app pool per application - this way, you can switch framework versions without worrying about other applications, and you can kill individual applications through task manager when the need arises.




回答2:


The App Pools don't need configuring, just make sure the 2.0 sites are running as one, and the 4.0 site running as another.



来源:https://stackoverflow.com/questions/3628729/install-asp-net-4-0-alongside-asp-net-2-0-on-iis6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!