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

Jag*_*ggu 9 asp.net iis iis-7

我在IIS中托管了一个站点,但每当我浏览该站点时,我都会得到404.4.我怎么解决这个问题?我已经提到了几个帖子,他们都说这个问题是关于staticfile的,但它已经被映射了.我还能做什么?这是我的iis 7.0中处理程序映射的附加图片

在此输入图像描述

有任何想法吗?

编辑:

我有这个网址重写器设置:

<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> 
Run Code Online (Sandbox Code Playgroud)

当我禁用此规则时,http://请求被正确处理.但是当我启用它时,我收到此错误.

又一次更新:

如果我替换它:

<action type="Rewrite" url="https://abc.com/{R:1}" />
Run Code Online (Sandbox Code Playgroud)

<action type="Redirect" url="https://abc.com/{R:1}" />
Run Code Online (Sandbox Code Playgroud)

这一切都很顺利.

小智 12

我遇到了完全相同的问题.我安装了应用程序请求路由组件,然后设置了启用的代理,并选择了使用URL重写来检查输入重定向url别名和我的工作的传入请求

  • 这就是安装 ARR 后启用代理的方式 https://github.com/MicrosoftDocs/iis-docs/blob/master/iis/extensions/configuring-application-request-routing-arr/creating-a-forward-proxy -using-application-request-routing.md#user-content-configure-arr-as-a-forward-proxy (2认同)