How do I fix 404.17 error on Win Server 2k8 and IIS7(如何修复 Win Server 2k8 和 IIS7 上的 404.17 错误)
问题描述
我在 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 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何修复 Win Server 2k8 和 IIS7 上的 404.17 错误
基础教程推荐
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- WPF 模态进度窗口 2022-01-01
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
