Description
Is your feature request related to a problem? Please describe.
Trying to run an asp.net core app on Windows Server with incorrent or missing Hosting bundle results in
Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Actually we had the .NET Core 3.1.8 runtime installed but the Hosting bundle was not installed (it happens).
What shouldn't have happen is spending couple of hours trying to nail down the issue and doing so without any errors being logged anywhere.
Describe the solution you'd like
Since this happens before the app is bootstrapped/running and no logging mechanism can work in this case the platform/framework should provide exception/error details and log them in Event Log or in the root of the application, maybe /log or similar.
Also the error message details provided by IIS could be better, I only discovered this was runtime related because the Task Manager was missing dotnet.exe processes and the error message (see the screenshot below) looks somewhat .NET Framework-ish.