HTTP Error 404.4 - Not Found The resource you are looking for does not have a handler associated with it(HTTP 错误 404.4 - 未找到您要查找的资源没有与之关联的处理程序)
问题描述
我在 IIS 中托管了一个站点,但每当我浏览到该站点时,我都会得到 404.4.我该如何解决这个问题?我已经提到了几篇文章,他们都说问题是关于静态文件的,但它已经被映射了.我还能做什么?这是我的 iis 7.0 中处理程序映射的附件图片
I've hosted a site in IIS but whenever I browse to the site I get 404.4. How can I solve this? I've referred several posts and they all say the issue is about staticfile but it is already mapped. What more can I do? Here is the attached picture of handler mappings in my iis 7.0
有什么想法吗?
我已经设置了这个 url 重写器:
I have this url rewriter set up:
<rules>
<rule name="Imported Rule 1-1" enabled="true" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{SERVER_PORT}" pattern="80" />
</conditions>
<action type="Rewrite" url="https://abc.com/{R:1}" />
</rule>
当我禁用此规则时,http://请求得到正确处理.但是当我启用它时,我得到了这个错误.
When I disable this rule the http:// request is correctly handled. But when I enable it, I get this error.
又一次更新:
如果我替换这个:
<action type="Rewrite" url="https://abc.com/{R:1}" />
与
<action type="Redirect" url="https://abc.com/{R:1}" />
一切都很顺利.
推荐答案
我遇到了完全相同的问题.我安装了应用程序请求路由组件,然后启用代理并选择使用 URL 重写来检查输入重定向 URL 别名的传入请求,我的工作
I was having the exact same issue. I installed Application Request Routing component and then set the Proxy enabled and selected the Use URL Rewrite to inspect incoming requests entered the redirect url alias and mine worked
这篇关于HTTP 错误 404.4 - 未找到您要查找的资源没有与之关联的处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:HTTP 错误 404.4 - 未找到您要查找的资源没有与之关联的处理程序


- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- C# 中多线程网络服务器的模式 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 输入按键事件处理程序 2022-01-01