Symptom

After PowerServer API application is deployed to IIS, users see 500.19 error as shown below when accessing any API from a browser.

Error message:

Server Error in Application "application name"

HTTP Error 500.19 – Internal Server Error

HRESULT: 0x8007000d

Description of HRESULT

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


Environment 

PowerServer 2021 and later


Cause

For most of PowerServer users, this is because they haven’t installed .NET Core 3.1 Hosting Bundle, which includes the .NET Runtime and IIS support.


Resolution

1. Download and install ASP.NET Core Hosting Bundle 3.1 from https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-aspnetcore-3.1.13-windows-hosting-bundle-installer

2. If installing ASP.NET Core Hosting Bundle 3.1 doesn’t solve the issue, you can refer to the description about the 500.19 error in the following Microsoft documentation:

https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/health-diagnostic-performance/http-error-500-19-webpage

Note

PowerServer 2022 and above support .NET 6 and higher. Please download the corresponding version of .NET Windows Hosting Bundle according to your C# solution.

E.g.: PowerServer 2022 Windows Hosting Bundle:

https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/hosting-bundle?view=aspnetcore-6.0


 

3
1