IIS上的Blazor:HTTP错误500.19-内部服务器错误错误代码:0x8007000d?

时间:2019-11-29 05:35:11

标签: asp.net asp.net-core iis blazor

我创建了Blazor应用程序,它在Visual Studio的IIS Express中运行。

然后,我在Windows IIS上创建了一个网站,并将文件发布到IIS文件夹。但是,浏览器显示:

HostInIIS

以下是生成的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=".\BlazorApp1.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    </system.webServer>
  </location>
</configuration>
<!--ProjectGuid: e03d13a0-86b1-4f57-adee-8d1aeda34ab8-->

我阅读了其他问题,并在PC上安装了UrlRewrite2.1。

更新

安装dotnet-hosting-3.0.1-win.exe后,现在出现500错误。

500

0 个答案:

没有答案
相关问题