尝试从asp文件打开html文件时出现错误404.4

尝试从asp文件打开html文件时出现错误404.4,html,iis,windows-7,asp-classic,Html,Iis,Windows 7,Asp Classic,我一直在做一个创建工资管理系统的项目。我有以下问题: 当我尝试在asp文件中创建链接时,例如 . . if Found = 1 then response.write("Welcome " & rec("firstname") & " " & rec("lastname")) %> <br><a href="admin_home.html">Click to continue....</a> <% else

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

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

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

<%      
else
%>
.
.

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

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

配置>>


关于,

所有模块和asp文件似乎都工作正常。我应该在html文件的staticHandler中添加什么?您可以检查这三个模块StaticFileModule、DefaultDocumentModule、DirectoryListingModule是否已启用吗?这些是处理静态内容的模块。是的。请求路径设置为*在请求限制内,映射到文件或文件夹谓词到所有谓词访问readHmmm,有趣。在config.tryed中尝试path=*.html。仍然存在相同的问题。哪个IIS版本?在服务器上或Windows 7机箱上的本地?在Windows 7机箱上的本地。IIS 7.5
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