强制 IIS Express 进入经典管道模式 [英] Force IIS Express to Classic Pipeline Mode

查看:25
本文介绍了强制 IIS Express 进入经典管道模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何强制 IIS Express 在经典模式下运行?我需要这个配置保留在 .csproj 中,一旦这个文件说一个项目应该用 IIS Express 打开.

How can I force IIS Express to run at classic mode? And I need that this configuration stays with .csproj, once that this file that say that a project should be open with IIS Express.

推荐答案

在 Visual Studio 2010 中,在解决方案资源管理器中选择 Web 应用程序项目节点,然后:

In Visual Studio 2010 select the Web Application project node in Solution Explorer then either:

  • F4

  • 导航到 View ->属性窗口或按 F4

重要提示:不要右键单击 ->解决方案资源管理器中项目节点的右键单击上下文菜单中的属性,因为这将显示项目的属性页面,这是完全不同的东西.

Important: Don't Right-click -> Properties from the right-click context menu for the project node in solution explorer because that will show the Property Pages for the project which is a whole different thing.

在 Windows 属性中,您将看到 Managed Pipeline Mode 的条目:

In the properties Windows you'll see the entry for Managed Pipeline Mode:

在 Visual Web Developer 2010 Express 中它或多或少相同,再次选择 web 项目,除了按 F4 以获取该属性页:

In Visual Web Developer 2010 Express it's more or less the same, again select the web project except press F4 to get that property page:

唯一需要注意的是,如果您与他人共享项目(例如通过源代码管理),则此设置不会存储在 .csproj 文件中,而是存储在 IIS Express applicationHost 中.config 文件特定于您的用户配置文件.所以你需要确保其他人在他们自己的本地 applicationHost.config 文件中配置了这个属性:

The only caveat is that if you share the project with others (say via source control), this setting isn't stored in the .csproj file but in the IIS Express applicationHost.config file specific to your user profile. So you'd need to ensure others configured this property in their own local applicationHost.config files in:

%userprofile%DocumentsIISExpressconfig

以上所有内容也适用于 Visual Studio 2013 和 2015.

All of the above also works with Visual Studio 2013 and 2015.

这篇关于强制 IIS Express 进入经典管道模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆