IIS 7中为ASP.NET缺少MIME类型404.17
| 
                         当获得新配置的 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.
解决方法固定:
 从“程序和功能>打开或关闭Windows功能”打开ASP.NET后,必须从Windows命令提示符安装ASP.NET. MIME类型不会显示,但在执行此命令后,我注意到这些扩展显示在IIS管理器的IIS网站“处理程序映射”部分下. C:>cd C:WindowsMicrosoft.NETFramework64v4.0.30319
C:WindowsMicrosoft.NETFramework64v4.0.30319>dir aspnet_reg*
 Volume in drive C is Windows
 Volume Serial Number is 8EE6-5DD0
 Directory of C:WindowsMicrosoft.NETFramework64v4.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:WindowsMicrosoft.NETFramework64v4.0.30319>aspnet_regiis.exe -i
Start installing ASP.NET (4.0.30319).
.....
Finished installing ASP.NET (4.0.30319).
C:WindowsMicrosoft.NETFramework64v4.0.30319> 
 但是,我仍然收到这个错误.但是,如果你做了我所提到的“修复”,这将会消失. 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. (编辑:莱芜站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!  | 
                  
- asp.net – Intranet / Internet的Windows身份验证
 - ASP.NET代码隐藏中的当前工作目录 – 我们可以依赖它吗?
 - 在ASP.NET中,什么决定了HostingEnvironment.IsDevelopmentE
 - ASP.Net WebAPI与Ajax进行跨域数据交互时Cookies数据的传递
 - asp.net-mvc – MVC4部分视图没有将值加载到“容器”模型中
 - asp.net-mvc – 如何成功配置Common.Logging?
 - asp.net – OutOfMemoryException当发送大文件500MB使用Fil
 - asp.net – 在Azure网站上启用gzip压缩
 - asp.net-mvc – 使ASP.NET绑定指定media =屏幕的CSS bundle
 - 单元测试 – 如何在ASP MVC 5(Microsoft.AspNet.Identity)中
 
- IIS和ASP.Net Web开发服务器之间的行为差异?
 - asp.net-mvc – 何时使用asp.net mvc的路由规则v
 - ASP.NET MVC编辑器模板和Html.EditorFor(…) –
 - asp.net-mvc – 在MVC命令,优先级和功能问题中授
 - ASP.NET -- WebForm -- 页面生命周期事件
 - asp.net – 在剃刀中等同于End / Response.End?
 - 这是一个bug?浮动操作被视为整数
 - 如何单元测试我的asp.net-mvc控制器的OnActionEx
 - asp.net-mvc-4 – 在哪里可以找到WebMatrix.WebD
 - asp.net – 什么是system.globalization它和本地
 
