经典应用程序池在调试器中不起作用

classic application pool not working in the debugger

我已经将我的网站升级到 framework 4.5.2 我想使用升级前的经典应用程序池。

当我尝试通过按 F5 运行 它时,出现错误

HTTP Error 500.22 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

Most likely causes:
This application defines configuration in the system.web/httpModules section.

Things you can try:
Migrate the configuration to the system.webServer/modules section. You can do so manually or by using AppCmd from the command line. For example, from the IIS Express install directory, run appcmd migrate config “Default Web Site/”. Using AppCmd to migrate your application will enable it to work in Integrated mode. It will continue to work in Classic mode and on previous versions of IIS.
If you are certain that it is OK to ignore this error, it can be disabled by setting system.webServer/validation@validateIntegratedModeConfiguration to false.
Alternatively, switch the application to a Classic mode application pool. For example, from the IIS Express install directory, run appcmd set app “Default Web Site/” /applicationPool:“Clr4ClassicAppPool”. Only do this if you are unable to migrate your application.

Detailed Error Information:
Module  ConfigurationValidationModule
Notification    BeginRequest
Handler ExtensionlessUrl-Integrated-4.0
Error Code  0x80070032
Requested URL   http://localhost:64182/
etc

默认网站已经是经典网站,我想让网站作为经典网站运行。

出于某种原因,我将网站项目设置为集成。 为了修复它,我转到属性并将其设置为经典。