IIS 7.5
Windows 7 64-bit
.NET 4.0
我在 IIS 7.5 中有一个 .NET 4.0 站点。默认文档设置为 home.aspx。
如果应用程序池托管管道模式设置为“经典” http://localhost/mysite会显示以下错误
Server Error in '/mysite' Application.
--------------------------------------------------------------------------------
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /mysite
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
如果我转到http://localhost/mysite/home.aspx,该站点将正确显示。
如果我使用“集成”作为托管管道,则站点使用任一路径正确显示。
我已经尝试过针对早期 IIS 版本的 EnableExtensionlessUrls 修复程序,并将默认文档信息直接放在 web.config 中。这些都不适用于“经典”管道模式。
知道为什么会这样吗?