加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

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

发布时间:2020-12-15 19:28:58 所属栏目:asp.Net 来源:网络整理
导读:为什么当我通过IE6访问aspx(例如, http://www.example.com/foo.aspx – 而不是真实的网站)将在IIS6中获得404错误(即,“无法找到该页面”) 我已经为网站启用了脚本,我试过可执行文件也启用。 这里是完整的错误: The page cannot be foundThe page you are
为什么当我通过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或等效)后重新初始化。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读