天天看點

It is not possible to run two different versions of ASP.NET in the same IIS process:IIS

It is not possible to run two different versions of ASP.NET in the same IIS process.問題解決

在IIS6.0上,如果我們想同時部署.NET 1.0 和.NET2.0編寫的Web應用程式,我們就需要針對不同版本的Framework建立不同的應用程式池。

如果直接将一個.Net 1.0 和一個.Net 2.0編寫的Web應用程式部署到IIS6.0上,同時使用預設的AppPool,則回出現以下問題:

1.  通過浏覽器通路Web應用的時候

2.  檢視事件檢視器 (運作-àcompmgmt.msc)

問題:

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.

3.  解決方法,針對不同的Framework應用程式,建立不同的Application Pool.

針對不同版本的站點(包括虛拟目錄,因為它也要用Application Pool),采用不同的Application Pool,即建立一個用于.net2.0以Application Pool為模闆的應用程式池.Net2.0,再修改站點的屬性—>應用程式池為.Net2.0就OK了。就這麼簡單!

繼續閱讀