为什么当我通过IE6访问aspx(例如,http://www.example.com/foo.aspx——不是真实的站点)时,我会在IIS6中出现404错误(即,"找不到页面")

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

以下是完整错误:

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. 

我可以违约.htm在同一个目录中,所以我知道路径是正确的.我已经(暂时)向所有人开放了它,所以我知道权限是正确的.

推荐答案

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

Asp.net相关问答推荐

由于 Blazor Change Detection API,组件重新渲染被跳过.如何避免?

DBSet 不包含 Where 的定义

如何将标头中的用户名/密码传递给 SOAP WCF 服务

HttpRuntime.Cache[] 与 Application[]

如何在页面加载之前运行 JavaScript 代码?

N' 在 SQL 脚本中代表什么? (插入脚本中字符之前使用的那个)

将存储过程中 Select 查询的结果返回到列表

如何获取 ActionLink 的工具提示?

如何在 ASP.NET 页面中以编程方式生成 401 错误

DropDownList AppendDataBoundItems(第一项为空白且无重复项)

将查询参数绑定到 ASP.NET Core 中的模型

使用 Ninject OWIN 中间件在 OWIN 启动中注入 UserStore

带有模型的 ASP.NET MVC 重定向

Asp.Net web 服务:我想返回错误 403 禁止

如何判断本地主机

Docker 中的 ASPNETCORE_ENVIRONMENT

ASP.NET Excel 导出编码问题

使用 ConfigurationManager.RefreshSection 重新加载配置而不重新启动应用程序

ASP.Net 哪个用户帐户在 IIS 7 上运行 Web 服务?

ModelClientValidationRule 冲突