0

我已经通过以下命令成功生成了一个发布文件夹;

dotnet publish -c Release -r win10-x64 --self-contained

在此处输入图像描述

这是发布文件夹中生成的exe文件。如果我运行 exe 文件,网站在 localhost:5000 上运行没有问题。

然而; 当我尝试将此网站放在 iis 上时,出现以下错误;

HTTP Error 500.19 - Internal Server Error

,

Error Code     0x8007000d

在此处输入图像描述

这是我的网络配置文件;

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath=".\AURORA.MvcWebUI.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
  </system.webServer>
</configuration>



<!--ProjectGuid: 1E855145-26EA-4E34-8527-9A44CCB14290-->

请问你能帮帮我吗?

4

0 回答 0