问题描述
我在 Win Server 2k8 下的 IIS 7 上设置了一个新的 .net 2.0 网站,当浏览到一个页面时,它给了我一个 404.17 错误,声称该文件(在这种情况下为 default.aspx)似乎是一个脚本但由静态文件处理程序处理.听起来 ASP.Net 的模块映射搞砸了,但它们在配置中看起来不错.有没有人有纠正这个错误的建议?
I've setup a new .net 2.0 website on IIS 7 under Win Server 2k8 and when browsing to a page it gives me a 404.17 error, claiming that the file (default.aspx in this case) appears to be a script but is being handled by the static file handler. It SOUNDS like the module mappings for ASP.Net got messed up, but they look fine in the configurations. Does anyone have a suggestion for correcting this error?
推荐答案
有一次我在 IIS6 上遇到了这个问题,当时不知何故 ASP.NET ISAPI 东西坏了.
I had this problem on IIS6 one time when somehow the ASP.NET ISAPI stuff was broke.
跑步
%windir%Microsoft.NETFrameworkv2.0.50727aspnet_regiis.exe -i
重新创建设置已经处理好了.
to recreate the settings took care of it.
这篇关于如何修复 Win Server 2k8 和 IIS7 上的 404.17 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!