Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS error 500.19 error when reading web.config

I am running IIS under Windows Server 2016 and I'm trying to run an ASP.Net core 3.1 application but I can't get past this error: 500.19 error

(The language in the picture is Hungarian, but it contains no useful information whatsoever, just an example) Here is my 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=".\Minibizz.Routing.Web.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    </system.webServer>
  </location>
</configuration>

What am I missing? P.S.: The web.config was created by Visual Studio 2019.

like image 898
Jeremy Gyovai-Rafa Avatar asked Oct 30 '25 14:10

Jeremy Gyovai-Rafa


2 Answers

It seems that when there is an error "500.19 - internal server error", with "error code 0x8007000d", from web.config, and the specification in the lower box just reads "Config source -1: 0:" (which I would guess is exactly what the original poster's error message in Hungarian says), it is usually due to a config section that is not at all supported by the server (as opposed to a syntax error or an unsupported parameter).

See this discussion: https://social.msdn.microsoft.com/forums/en-US/06556db0-3597-4122-b365-12bcbc10740e/error-50019-error-code-0x8007000d-config-source-1-0?forum=iistroubleshooting

In my case, the IIS URL Rewrite Module was referenced in the web.config file but missing from the server, causing this error. After downloading the installation package from https://www.iis.net/downloads/microsoft/url-rewrite and installing the module, the error went away.

like image 69
Otto G Avatar answered Nov 02 '25 04:11

Otto G


My error was resolved by repairing the hosting bundle.

Important If the Hosting Bundle is installed before IIS, the bundle installation must be repaired. Run the Hosting Bundle installer again after installing IIS. If the Hosting Bundle is installed after installing the 64-bit (x64) version of .NET Core, SDKs might appear to be missing (No .NET Core SDKs were detected). To resolve the problem, see Troubleshoot and debug ASP.NET Core projects.

https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/hosting-bundle?view=aspnetcore-8.0#install-the-net-core-hosting-bundle

like image 20
David Avatar answered Nov 02 '25 03:11

David



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!