【发布时间】:2012-07-04 09:08:14
【问题描述】:
当获得一个新配置的 Windows 7 机器时,我注意到默认情况下 ASP.NET 是关闭的。经典的 ASP 也是如此。我收到一个 Web 应用程序的 404.17 错误。我认为这是因为我没有“aspx”MIME 类型。虽然这只是猜测。当我在“控制面板”>“程序和功能”>“打开或关闭 Windows 功能”下打开它们并重新启动我的 Windows 7 机器时,MIME 类型从未出现过。有人可以检查 *.aspx 页面的 MIME 类型,并告诉我编辑模式下的配置吗?对于 ASP.NET 扩展(即:ashx、asax 等),我会缺少哪些其他 MIME 类型?配置它们的最佳方式是什么?
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.
【问题讨论】:
标签: asp.net iis http-status-code-404 configure