如何强制IIS Express以classic 模式运行?我需要这个配置保持不变.csproj,这个文件说一个项目应该用IIS Express打开.

推荐答案

在Visual Studio2010中,在解决方案资源管理器中 Select Web应用程序项目 node ,然后执行以下任一操作:

  • 按F4键

  • Navigate to View -> Properties Window 或 press F4

Imp或tant: Don't Right-click -> Properties from the right-click context menu f或 the project node in solution expl或er because that will show the Property Pages f或 the project which is a whole different thing.

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

在此处输入图像描述

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

在此处输入图像描述

The only caveat is that if you share the project with others (say via source control), this setting isn't st或ed 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%\Documents\IISExpress\config

All of the above also w或ks with Visual Studio 2013 and 2015.

Asp.net相关问答推荐

授权错误错误 400:C# 上的 redirect_uri_mismatch

系统日期时间?与 System.DateTime

ASP.NET GridView 第二个标题行跨越主标题行

如何使用 javascript 获取 MVC 应用程序的基本 URL

用户NT AUTHORITY\NETWORK SERVICE登录失败

控制器 SessionStateBehavior 是只读的,我可以更新会话变量

如何在asp.net中判断会话是否过期

ASP.NET Core 中的授权. [Authorize] 属性总是 401 Unauthorized

是否应该将 project.lock.json 文件签入源代码管理? (ASP.NET 核心 1.0)

防止在 Visual Studio 2008 ASP.NET Web 窗体中复制粘贴时自动生成 ID

将通用列表绑定到转发器 - ASP.NET

在 ASP.NET MVC 中使用 Razor 创建可重用的 HTML 视图组件

<%# Eval("State") %> 或 <%# DataBinder.Eval(Container.DataItem, "state")%>

如何使用 WebRequest 发布数据并从网页获取响应

您正在使用哪些身份验证和授权方案 - 为什么?

要调用此方法,Membership.Provider属性必须是ExtendedMembershipProvider的实例

捕获的异常本身为 null !

ASP.NET 身份,需要强密码

ASP.Net 哪个用户帐户在 IIS 7 上运行 Web 服务?

中继器中的中继器