首页 文章

站点未在经典管道模式下重定向到默认文档

提问于
浏览
0
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 回答

相关问题