HTTP 错误 404.4 - 未找到您要查找的资源没有与之关联的处理程序

HTTP Error 404.4 - Not Found The resource you are looking for does not have a handler associated with it(HTTP 错误 404.4 - 未找到您要查找的资源没有与之关联的处理程序)
本文介绍了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 - 未找到您要查找的资源没有与之关联的处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)
Bind multiple parameters from route and body to a model in ASP.NET Core(在ASP.NET Core中将路由和主体中的多个参数绑定到一个模型)
Custom model binding in AspNet Core WebApi?(AspNet Core WebApi中的自定义模型绑定?)
How to minify in .net core mvc view?(如何在.Net核心MVC视图中缩小?)