简体   繁体   English

如何使用IIS Manager 7.0为虚拟目录设置ASP.NET版本?

[英]How do I set the ASP.NET version for a Virtual Directory using IIS Manager 7.0?

In the old version of IIS Manager, I could just right-click on a VD, hit properties, and then in the ASP.NET tab pick the version of ASP.NET I wanted to run. 在旧版本的IIS管理器中,我可以右键单击VD,点击属性,然后在ASP.NET选项卡中选择我想要运行的ASP.NET版本。 Does anyone know if that is still possible? 有谁知道这还有可能吗? I am running a localhost instance of IIS on my Vista box and I am not used to the new UI that IIS 7 comes with. 我在我的Vista机器上运行IIS的localhost实例,我不习惯IIS 7附带的新UI。

You need to change the application pool - the ASP.NET version is set at the application pool level. 您需要更改应用程序池 - 在应用程序池级别设置ASP.NET版本。

Left click the virtual directory in IIS manager, then on the far right of the screen click on 'advanced settings' The application pool is at the top of the list there. 左键单击IIS管理器中的虚拟目录,然后在屏幕的最右侧单击“高级设置”应用程序池位于列表的顶部。

If you need to, you can add a new application pool by right clicking the 'application pools' icon in the left pane and selected 'Add Application Pool' 如果需要,可以通过右键单击左窗格中的“应用程序池”图标并选择“添加应用程序池”来添加新的应用程序池

IIS7 has two options within a "website". IIS7在“网站”中有两个选项。 In IIS6 you'd add a sub-app as a "Add Virtual Directory..." in IIS7 doing so forces you to keep the same AppPool and thus .NET framework version as the website. 在IIS6中,您将在IIS7中添加一个子应用程序作为“添加虚拟目录...”,这样就迫使您保持与网站相同的AppPool和.NET框架版本。

But, IIS7 now has an "Add Application..." options, which allows you to essentially do what IIS6 had allowed, so that you can explicitly state the AppPool to run in and it can differ from the parent website. 但是,IIS7现在有一个“添加应用程序...”选项,它允许您基本上执行IIS6允许的操作,以便您可以明确声明AppPool运行,它可以与父网站不同。

In IIS7 the ASP.NET version is specified in an application pool (which is then used by your web app). 在IIS7中,ASP.NET版本在应用程序池中指定(然后由Web应用程序使用)。 There's a screenshot of the dialog here: 这里有对话框的截图:

http://www.stolenbit.com/2008/10/select-aspnet-version-in-iis-7.html http://www.stolenbit.com/2008/10/select-aspnet-version-in-iis-7.html

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

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