Default.aspx 页面不会在 IIS 6 上加载
使用 .net 4 在主网站上运行 IIS 6。我有许多子网站,主要运行 .net 4,浏览它们时 default.aspx 自动加载,没有问题。然而,其中一个网站正在运行 .net 3.5,当浏览到开放式 url 时,default.aspx 不会自行加载: http://127.0.0.1/TestApp 但是,如果我直接浏览到该文件,它工作正常:http://127.0.0.1/TestApp/Default.aspx。
查看 .net 3.5 Web 应用程序下的文档,它确实将 Default.aspx 显示为“启用的默认内容页面”。如果我将应用程序切换到 .net 4.0,default.aspx 页面会自动加载。但我无法保留此设置,因为它是一个编译的网络应用程序,并且在某些页面上出现错误,并且无权更新代码。
有谁见过这个问题并知道如何解决?任何帮助/想法都会很棒!
谢谢!
编辑
错误页面 找不到资源。 描述:HTTP 404。您正在查找的资源(或其依赖项之一)可能已被删除、名称已更改或暂时不可用。请检查以下 URL 并确保拼写正确。
请求的 URL:/licensure/eurl.axd/ce90d150037c2545966c2948cd3e2e7e/
版本信息:Microsoft .NET Framework 版本:2.0.50727.3053; ASP.NET版本:2.0.50727.3053
Running IIS 6 with a main website using .net 4. I have many sub websites under that mostly running .net 4 and when browsing to them default.aspx auto loads without issue. One of the websites, however, is running .net 3.5 and default.aspx won't load by itself when browsing to an open ended url: http://127.0.0.1/TestApp however if I browse directly to the file it works fine: http://127.0.0.1/TestApp/Default.aspx.
Looking at the Documents under the .net 3.5 web application it does show Default.aspx as an "enabled default content page." If I switch the app to .net 4.0 the default.aspx page does load automatically. I cannot keep this setting though because it is a compiled web app and errors out on some pages and don't have the access to update the code.
Has anyone seen this issue and know how to resolve? Any help/ideas would be great!
Thanks!
EDIT
Error Page
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: /licensure/eurl.axd/ce90d150037c2545966c2948cd3e2e7e/
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想查看此网站:http: //www.vanadiumtech.com/OurBlog/post/2011/08/12/Cause-of-eurlaxd.aspx
看来这与.NET 4 的无扩展名 URL。
从上面的链接页面:
You might want to see this site: http://www.vanadiumtech.com/OurBlog/post/2011/08/12/Cause-of-eurlaxd.aspx
Appears that this has to do with .NET 4's extensionless URLs.
From the above linked page page: