Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net core IIS 10.0详细错误500.19错误代码:0x8007000d_Asp.net Core_Localhost_Angular8_Iis 10 - Fatal编程技术网

Asp.net core IIS 10.0详细错误500.19错误代码:0x8007000d

Asp.net core IIS 10.0详细错误500.19错误代码:0x8007000d,asp.net-core,localhost,angular8,iis-10,Asp.net Core,Localhost,Angular8,Iis 10,在本地IIS服务器中发布项目后,执行安装程序时:http://localhost/codeIIS/ 我得到一个错误500.19内部服务器错误。 以下是我的平台详细信息: IIS-10.0 Windows 10 x64位操作系统 在我的web.config文件代码中: <?xml version="1.0" encoding="utf-8"?> <configuration> <location path=".

在本地IIS服务器中发布项目后,执行安装程序时:http://localhost/codeIIS/ 我得到一个错误500.19内部服务器错误。 以下是我的平台详细信息:

  • IIS-10.0
  • Windows 10 x64位操作系统
在我的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=".\CONSOLIDATION PORTAL.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    </system.webServer>
  </location>
</configuration>
<!--ProjectGuid: 8240d3ab-7972-48e2-91ac-f9f57451ae7e-->


如何修复该错误。从microsoft文档页面感谢-

这是由于webconfig中的XML格式不正确造成的。整合和门户之间是否应该有一个空间-

processPath=".\CONSOLIDATION PORTAL.exe" 

您似乎没有安装.Net核心托管包。我建议您可以下载并安装它,然后再次测试。详细信息,您可以参考。@BrandoZhang I安装了urlrewrite.exe、aspnetcore-runtime-3.1.10-win-x64.exe和windowsdesktop-runtime-5.0.0-win-x64.exe。但错误无法修复。为什么要安装url重写?您的web.config文件是否完整?您是否在应用程序中使用url重写?如果可能,请发布整个配置文件,路径为wwwroot\xxxIIS\web.config。这是否回答了您的问题?