【问题标题】:Error 404.4 when trying to open an html file from asp file尝试从 asp 文件打开 html 文件时出现错误 404.4
【发布时间】:2013-04-14 13:14:14
【问题描述】:

我一直在从事一个创建工资管理系统的项目。我有以下问题: 当我尝试在 asp 文件中创建链接时,例如

.
.
if Found = 1 then
response.write("Welcome " & rec("firstname") & " " & rec("lastname"))
%>

<br><a href="admin_home.html">Click to continue....</a>

<%      
else
%>
.
.

当我点击链接时,我不断收到以下错误:

HTTP Error 404.4 - Not Found
The resource you are looking for does not have a handler associated with it.



Module  IIS Web Core
Notification    MapRequestHandler
Handler Not yet determined
Error Code  0x80070002
Requested URL   http://localhost:80/Project/Home.html
Physical Path   C:\inetpub\wwwroot\Project\Home.html
Logon Method    Anonymous
Logon User  Anonymous

通过 ASP 文件指向 html 文件的其他链接也存在同样的问题。请指教。

【问题讨论】:

  • 哪个 IIS 版本?在 Windows 7 机器上的服务器上还是本地?
  • 本地在您的 Windows 7 机器上。 IIS 7.5

标签: html iis windows-7 asp-classic


【解决方案1】:

我假设您已经安装了 aps 模块并且 asp 文件运行良好。在这种情况下,您还没有在 IIS 的 web.config 中配置静态文件处理程序。

配置>>http://technet.microsoft.com/en-us/library/cc771240(v=ws.10).aspx

问候,

【讨论】:

  • 所有模块和 asp 文件似乎工作正常。我应该在 html 文件的 staticHandler 中添加什么?
  • 你能检查一下这三个模块 StaticFileModule,DefaultDocumentModule,DirectoryListingModule 是否被启用?这些是处理静态内容的模块。
  • 是的。请求路径设置为 * 在请求限制内,映射到文件或文件夹动词到所有动词访问权限
  • 嗯,很有趣。在配置中尝试 path = *.html。
  • 试过了。还是同样的问题。
猜你喜欢
  • 2020-11-17
  • 1970-01-01
  • 1970-01-01
  • 2011-10-06
  • 2017-10-02
  • 2013-02-06
  • 2016-10-15
  • 2020-06-08
  • 2016-11-03
相关资源
最近更新 更多