Mac*_*ver 12 asp.net iis configure http-status-code-404
获取新配置的Windows 7框时,我注意到默认情况下ASP.NET已关闭.经典的ASP也是如此.我在Web应用程序中收到404.17错误.我认为这是因为我没有"aspx"MIME类型.虽然这只是猜测.当我在"控制面板">"程序和功能">"打开或关闭Windows功能"下打开它们,然后重新启动Windows 7计算机时,MIME类型从未出现过.有人可以查看他们对*.aspx页面的MIME类型,并告诉我编辑模式下的配置吗?我将在ASP.NET扩展中缺少哪些其他MIME类型(即:ashx,asax等等)?配置它们的最佳方法是什么?
Error Summary
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.
...
Module: StaticFileModule
Notification: ExecuteRequestHandler
Handler: StaticFile
Error Code: 0x80070032
Requested URL: ...
Physical Path: ...
Logon Method: NTLM
Logon User: {DOMAIN}\{WINDOWS LOGIN}
...
Most likely causes:
The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.
...
Things you can try:
If you want to serve this content as a static file, add an explicit MIME map.
Run Code Online (Sandbox Code Playgroud)
Mac*_*ver 17
固定:
我选择了在IIS管理器中单击服务器名称(而不是网站名称)后的"ISAPI和CGI限制",然后右键单击"ASP.NET v4.0.30319"线,选择"允许".
从"程序和功能>打开或关闭Windows功能"打开ASP.NET后,必须从Windows命令提示符安装ASP.NET.MIME类型不会显示,但在执行此命令后,我注意到这些扩展显示在IIS管理器的IIS网站"处理程序映射"部分下.
C:\>cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>dir aspnet_reg*
Volume in drive C is Windows
Volume Serial Number is 8EE6-5DD0
Directory of C:\Windows\Microsoft.NET\Framework64\v4.0.30319
03/18/2010 08:23 PM 19,296 aspnet_regbrowsers.exe
03/18/2010 08:23 PM 36,696 aspnet_regiis.exe
03/18/2010 08:23 PM 102,232 aspnet_regsql.exe
3 File(s) 158,224 bytes
0 Dir(s) 34,836,508,672 bytes free
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe -i
Start installing ASP.NET (4.0.30319).
.....
Finished installing ASP.NET (4.0.30319).
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>
Run Code Online (Sandbox Code Playgroud)
但是,我仍然有这个错误.但如果你按照我提到的"修复"做的话,这将会消失.
HTTP Error 404.2 - Not Found
The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
119470 次 |
| 最近记录: |