网站在经典管道模式下不会重定向到“默认文档”
|
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,该站点将正确显示。
如果我使用\“ Integrated \”作为托管管道,则该站点将使用任一路径正确显示。
我已经尝试了针对早期IIS版本的EnableExtensionlessUrls修复程序,并且还将默认文档信息直接放在web.config中。这些都不适用于“经典”管道模式。
知道为什么会这样吗?
没有找到相关结果
已邀请:
1 个回复
姬第柔炒