After deploying PowerServer Web APIs to IIS, you received the following error when accessing the Web APIs.
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.
Cause:
A very common cause is that .NET Core Hosting Bundle is not installed on the IIS server. This component is required by the IIS process manager to automatically launch the ASP.NET Core app (such as PowerServer Web APIs). It is NOT installed by default.
Solution:
Download and install the .NET Core Hosting Bundle to the IIS server.
The version of hosting bundle should match with the version of .NET framework used by Web APIs.
If installing .NET Core Hosting Bundle does not solve the issue, you should verify that IIS itself is working normally. For example, you can access the IIS default web site, if the IIS welcome page can display, it indicates IIS is working; if the welcome page cannot display, you should refer to the IIS troubleshooting guide to fix the error first, for example, refer to the following Microsoft documentation for more information about the 500.19 error: https://docs.microsoft.com/troubleshoot/developer/webapps/iis/health-diagnostic-performance/http-error-500-19-webpage.