在调试一个网上下载的.net网站时,打开就提示出错:
错误摘要
HTTP 错误 500.22 - Internal Server Error
检测到在集成的托管管道模式下不适用的 ASP.NET 设置。


根据提示错误,应该是需要把应用程序池的托管管道模式从【集成】改为【经典】,
打开IIS管理器,点击左上角的【应用程序池】,在【应用程序池】里面找到该网站的应用程序池名称,双击打开基本设置,把托管管道模式改为【经典】。

这是网站使用独立应用程序池的更改方法,如果是共享一个默认的应用程序池,应该是修改DefaultAppPool和Classic.NET AppPool,但这没有测试过。