配置错误(执行此操作时发生错误)

3
当我想要进入IIS中的模块部分时,我收到了这个错误。
另外,我也安装了URL重写模块。我知道web.config文件中存在问题,但我不知道问题出在哪里。
下面是我的web.config文件:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="dotnet" arguments=".\RasaBack.dll"   
              stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout"
              hostingModel="InProcess" />
  <aspNetCore processPath=".\RasaBack.exe" stdoutLogEnabled="false"stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
</system.webServer>
    </system.webServer>
  </location>
</configuration>

3个回答

7

这个。在我的情况下,我还需要安装https://www.iis.net/downloads/microsoft/url-rewrite,因为我已经添加了对`rewrite`模块的引用。 - Meekohi

1

1
安装 .net core 托管捆绑包 V3.1 后,我解决了错误并看到了完整的错误信息。 在此输入图像描述 我发现我有两个 aspNetCore。
 <aspNetCore processPath="dotnet" arguments=".\RasaBack.dll"    
              stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout"
              hostingModel="InProcess" />
  <aspNetCore processPath=".\RasaBack.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
</system.webServer>

然后我移除了其中一个错误,问题就解决了。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接