在VS2013中强制IIS Express应用程序池使用经典模式

本文提供了两种解决IISExpress中托管管道模式问题的方法:一种是在Visual Studio中更改设置;另一种是直接修改applicationhost.config文件来指定使用经典模式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

度娘不给力啊,找了半天全是一样没用的东西,最后找谷哥,还是哥给力终于找到了。

option-1: In Visual Studio goto WebSite/WebApplication properties and change ManagedPipelineMode to 'Classic'.

option-2: Open %userprofile%\documents\iisexpress\config\applicationhost.config and locate your site in "Sites" section and change the app pool to classic (say Clr4ClassicAppPool).

If you want all the WebApplications/WebSites that you are going to create in Visual Studio to run in 'Classic' mode (by default), then in %userprofile%\documents\iisexpress\config\applicationhost.config file change the applicationDefaults app pool as shown below.

<sites>
 ........
 ........
    <applicationDefaults applicationPool="Clr4ClassicAppPool" />
    <virtualDirectoryDefaults allowSubDirConfig="true" />
</sites>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值