asp.net – 为什么aspx文件返回404(“无法找到该页面”)

前端之家收集整理的这篇文章主要介绍了asp.net – 为什么aspx文件返回404(“无法找到该页面”)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
为什么当我通过IE6访问aspx(例如, http://www.example.com/foo.aspx – 而不是真实的网站)将在IIS6中获得404错误(即,“无法找到该页面”)

我已经为网站启用了脚本,我试过可执行文件也启用。

这里是完整的错误

The page cannot be found
The page you are looking for might have been removed,had its name changed,or
is temporarily unavailable. 
------------------------------------------------------------------------------

Please try the following:

Make sure that the Web site address displayed in the address bar of your 
browser is spelled and formatted correctly. 
If you reached this page by clicking a link,contact the Web site 
administrator to alert them that the link is incorrectly formatted. 
Click the Back button to try another link. 
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

------------------------------------------------------------------------------

Technical Information (for support personnel)

Go to Microsoft Product Support Services and perform a title search for the 
words HTTP and 404. 
Open IIS Help,which is accessible in IIS Manager (inetmgr),and search for 
topics titled Web Site Setup,Common Administrative Tasks,and About Custom 
Error Messages.

我可以得到到Default.htm在同一个目录,所以我知道的路径是正确的。我已经打开了每个人(暂时),所以我知道权限是正确的。

解决方法

这可能是很多事情。我今天遇到这个问题,因为.NET没有在安装IIS(aspnet_regiis -i -enable或等效)后重新初始化。
原文链接:https://www.f2er.com/aspnet/254780.html

猜你在找的asp.Net相关文章