windows-server-2003,IIS 6,ASP.NET 4,文档选项卡,Default.aspx不被加载404,服务器错误在'/'应用程序
文档选项卡中列出的唯一文件是default.aspx。
当我直接浏览到https://server/default.aspx它工作得很好。 当我浏览到https://服务器/我得到以下错误。
当我访问https://server/Login/default.aspx/ |时,行为是一样的 https://服务器/login/
Server Error in '/' 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: /Login/ Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
服务器日志如下所示:
2011-02-03 19:33:27 W3SVC2034766641 205.119.126.64 GET /Login/default.aspx - 443 - 205.119.126.60 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10_6_6;+en-us)+AppleWebKit/533.19.4+(KHTML,+like+Gecko)+Version/5.0.3+Safari/533.19.4 200 0 0 2011-02-03 19:33:35 W3SVC2034766641 205.119.126.64 GET /Login/ - 443 - 205.119.126.60 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10_6_6;+en-us)+AppleWebKit/533.19.4+(KHTML,+like+Gecko)+Version/5.0.3+Safari/533.19.4 404 0 0 2011-02-03 19:37:42 W3SVC2034766641 205.119.126.64 GET / - 443 - 205.119.126.60 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10_6_6;+en-us)+AppleWebKit/533.19.4+(KHTML,+like+Gecko)+Version/5.0.3+Safari/533.19.4 404 0 0 2011-02-03 19:37:48 W3SVC2034766641 205.119.126.64 GET /Login/default.aspx - 443 - 205.119.126.60 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10_6_6;+en-us)+AppleWebKit/533.19.4+(KHTML,+like+Gecko)+Version/5.0.3+Safari/533.19.4 200 0 0
https://stackoverflow.com/questions/2635320/asp-net-4-0-default-aspx-problem-on-iis6
在一个看似不相关的位置find修复 – 尝试将“EnableExtensionlessUrls”registry项设置为0:
ASP.NET 4重大更改 – > ASP.NET 2.0应用程序可能会生成引用eurl.axd的HttpException错误:
在Windowsregistry中,打开以下节点:HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ ASP.NET \ 4.0.30319.0
创build一个名为EnableExtensionlessUrls的新DWORD值。 将EnableExtensionlessUrls设置为0.这将禁用无扩展名的URL行为。 保存registry值并closuresregistry编辑器。 运行iisreset命令行工具,这会导致IIS读取新的registry值。