为什么会一个aspx文件中返回404(QUOT;该页面无法找到") [英] Why would an aspx file return 404 ("The page cannot be found")

查看:179
本文介绍了为什么会一个aspx文件中返回404(QUOT;该页面无法找到")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么当我访问一个aspx(例如, http://www.example.com/foo.aspx - 而不是真正的网站)通过IE6我会得到一个404错误(即在IIS6该页无法找到)

Why when I access an aspx (e.g., http://www.example.com/foo.aspx - not the real site) through IE6 would I get a 404 Error (i.e., "The page cannot be found") in IIS6

我已经得到了该网站启用脚本和我已经尝试过的可执行文件启用为好。

I've got scripts enabled for the website and I've tried with executables enabled as well.

下面是完整的错误:

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在同一目录中,所以我知道的路径是正确的。我打开它,每个人(临时),所以我知道的权限是正确的。

I can get to Default.htm in the same directory, so I know the path is right. I've opened it up to everyone (temporarily) so I know the permissions are right.

推荐答案

这可能是很多事情。我今天有这个问题,因为.NET尚未安装IIS(为aspnet_regiis -i -enable 或同等学历)后重新初始化。

It could be a lot of things. I had this issue today because .NET had not been re-initialized after installing IIS (aspnet_regiis -i -enable or equivalent).

这篇关于为什么会一个aspx文件中返回404(QUOT;该页面无法找到")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆