Asp.net HTTP错误500.52-URL重写模块错误

Asp.net HTTP错误500.52-URL重写模块错误,asp.net,iis,url-rewriting,web-config,angular2-routing,Asp.net,Iis,Url Rewriting,Web Config,Angular2 Routing,URL路由工作正常,但当我在IIS网站中创建应用程序时,应用程序停止工作,出现错误 HTTP错误500.52-URL重写模块 这条规则很有效() ) 我在谷歌上搜索过,但没有找到解决方案。需要专家指导。谢谢 您的配置错误显示: 无法添加唯一键属性“name”设置为“AngularJS Routes”的“rule”类型的重复集合项 您可能需要更改一个规则名称以使其生效,例如: <rule name="AngularJS Routes" stopProcessing="false">

URL路由工作正常,但当我在IIS网站中创建应用程序时,应用程序停止工作,出现错误

HTTP错误500.52-URL重写模块

这条规则很有效()


)


我在谷歌上搜索过,但没有找到解决方案。需要专家指导。谢谢


您的配置错误显示:

无法添加唯一键属性“name”设置为“AngularJS Routes”的“rule”类型的重复集合项

您可能需要更改一个
规则
名称以使其生效,例如:

<rule name="AngularJS Routes" stopProcessing="false">[...]</rule>
<rule name="AngularJS App Routes" stopProcessing="false">[...]</rule>
[…]
[...]
<rule name="AngularJS Routes" stopProcessing="false">
          <match url="(^app/.*)" />
          <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

          </conditions>
          <action type="Rewrite" url="/app/"/>
        </rule>
<rule name="AngularJS Routes" stopProcessing="false">[...]</rule>
<rule name="AngularJS App Routes" stopProcessing="false">[...]</rule>