【问题标题】:Why do I get a 500.19 Internal Server Error when publishing to IIS? [duplicate]发布到 IIS 时为什么会出现 500.19 内部服务器错误? [复制]
【发布时间】:2021-04-06 12:43:41
【问题描述】:

这是我自动生成的 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=".\RRRRAdminFrontend.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
    </system.webServer>
  </location>
</configuration>
<!--ProjectGuid: 2b13cd10-9360-4795-8443-00aebad0bb00-->

错误信息


HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.



Detailed Error Information:



Module
   IIS Web Core 

Notification
   Unknown 

Handler
   Not yet determined 

Error Code
   0x8007000d 

Config Error
    

Config File
   \\?\C:\inetpub\RRRRAdmin\web.config 



Requested URL
   http://rrrradmin.sharevista.com:80/ 

Physical Path
   

Logon Method
   Not yet determined 

Logon User
   Not yet determined 

Config Source:
   -1: 
    0: 

有谁知道我哪里出错了,或者我是否需要对此进行更改?我对使用 IIS 不太熟悉,所以如果有帮助,我可以展示其他代码 sn-ps。

【问题讨论】:

  • @LexLi 是的,这就是问题所在。我必须安装 2.2.8 核心运行时,因为它是在 Asp.Net Core 2.2 中开发的。谢谢!

标签: asp.net-core iis


【解决方案1】:

如果你想在 IIS 上托管 Asp.net core 应用程序,你需要安装 ASP.NET Core Module/Hosting Bundle。

使用以下链接下载安装程序:

Current .NET Core Hosting Bundle installer (direct download).

有关如何安装 ASP.NET Core 模块或安装不同版本的详细说明,请参阅Install the .NET Core Hosting Bundle

【讨论】:

  • 这成功了!我必须安装 2.2.8 核心运行时,因为它是在 Asp.Net Core 2.2 中开发的。谢谢!
猜你喜欢
  • 2011-03-04
  • 1970-01-01
  • 2019-02-06
  • 2016-12-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-09-20
  • 1970-01-01
相关资源
最近更新 更多