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页面上使用框架?
- asp.net-mvc – 在.NET 3.5 ASP.NET MVC应用程序中使用Goog
- iis-7 – 使用ASP.NET MVC3,如何在区分大小写的路由中使IIS
- 安装程序 – 在MVC4 RC中缺少单页应用程序模板
- asp.net-mvc – Asp.Net核心MVC6如何最初在Identity 3中添加
- asp.net-mvc-3 – 可以用“@:@”修复的MVC4剃刀的可能的突
- 在ASP.NET Web应用程序之间传递会话数据
- asp.net – 在GridView问题中的ImageButton上的PopUpExtend
- asp.net-mvc – 使用ASP.NET MVC支持“Expect:100-continu
- asp.net-mvc – ASP.NET MVC从c#代码创建绝对url
- asp.net-mvc – 使用Knockout JS MVC服务器端模型
- asp.net – 使用vb.net和EPPlus的单元格包装
- asp.net-mvc – ASP.Net MVC如何确定用户是否可以
- asp.net – %=%和%#%之间有什么区别?
- asp.net-web-api – 密码更改时如何使OAuth令牌无
- asp.net-mvc – 无法加载汇编WebPages.Deploymen
- Getting Started with ASP.NET Core
- asp.net-mvc – HtmlHelper扩展方法vs部分视图?
- ASP.NET MVC验证使用qTip jQuery插件
- asp.net – 确定哪个UpdatePanel导致部分(异步)P
