在IIS中执行此操作时出现错误

时间:2019-05-17 15:41:42

标签: iis

在IIS中,当我在IIS中打开任何模块时都会看到此信息。

---------------------------
Error Pages
---------------------------
There was an error while performing this operation.



Details: 

Filename: \\?\C:\inetpub\app\web.config

Error: 


---------------------------
OK   
---------------------------

我怎么知道是什么?

我还读到周围可能是我缺少模块?网址可能会重写吗?

<rewrite>
  <rules>
    <rule name="SPA Routes" stopProcessing="true">
      <!-- match everything by default -->
      <match url=".*" />
      <conditions logicalGrouping="MatchAll">
        <!-- unless its a file -->
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
        <!-- or a directory -->
        <!--<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />-->
        <!-- or is under the /api directory -->
        <add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
        <!-- list other routes or route prefixes here if you need to handle them server side -->
      </conditions>
      <!-- rewrite it to /index.html -->
      <action type="Rewrite" url="App/index.html" />
    </rule>
  </rules>
</rewrite>

有人知道我应该怎么做吗?

谢谢

0 个答案:

没有答案
相关问题