简体   繁体   English

如何在具有现有Framework 2.0网站的IIS6上运行.NET Framework 4.0网站

[英]How to run .NET Framework 4.0 website on IIS6 with existing framework 2.0 websites

Please tell me how to run .net framework 4.0 web sites on IIS6. 请告诉我如何在IIS6上运行.net framework 4.0网站。 we already have existing website on same server running on .net framework 2.0. 我们已经在.net framework 2.0上运行的同一服务器上已有现有网站。

Create a separate application pool for your 4.0 applications and make that run 4.0 or even better have an application pool per application so you isolate them. 为您的4.0应用程序创建一个单独的应用程序池 ,并使运行4.0或更高版本的每个应用程序都有一个应用程序池,以便隔离它们。

If you're upgrading you might want to have a look at this article on how to set the framework version from command line. 如果要进行升级,则可能需要查看有关如何从命令行设置框架版本的本文

Right-click the website you want to run with .NET 4.0, switch to the tab "ASP.NET" and select 4.0.<build-version-depending-on-your-patch-level> from the "ASP.NET version" dropdown list. 右键单击要与.NET 4.0一起运行的网站,切换至选项卡“ ASP.NET”,然后选择4.0.<build-version-depending-on-your-patch-level>下拉列表。

If Framework 4.0 is not shown you need to run aspnet_regiis.exe from the 4.0 Framework directory to register .NET Framework 4.0 with IIS. 如果未显示Framework 4.0,则需要从4.0 Framework目录运行aspnet_regiis.exe ,以向IIS注册.NET Framework 4.0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM