在VS2013中强制IIS Express应用程序池把集成模式改为经典模式
其实是在项目属性里就有设置托管管道模式里就可以设置了。不是右键的属性页。是单击项目就出现的属性。如下图:
或者这几个模式
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>