Home » c# » c# – HTTP Error 500.19 – Internal Server Error Error Code: 0x8007000d

c# – HTTP Error 500.19 – Internal Server Error Error Code: 0x8007000d

Posted by: admin February 21, 2020 Leave a comment

Questions:

I published my code to our IIS server and I am getting this error. From many recommendation that I read online, I installed Url rewrite but it does not seem to fix the issue. This error points to Web.Config and I don’t see any problem with it as it was also auto-generated. Everything works when I test it in IIS Express on Visual Studio 2019. Any idea? see code below:

<?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=".\forms.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    </system.webServer>
  </location>
</configuration>
How to&Answers:

try installing DotNetCore.1.0.0-WindowsHosting.exe from this page: https://www.microsoft.com/net/download .

Specific link to download: https://go.microsoft.com/fwlink/?LinkId=817246