'Blazor app published on server get HTTP Error 500.30 - ASP.NET Core app failed to start
I have a blazor application (Framework .NET6) published on my hosted server.
The application is configured as a website app called bis on IIS

The project is published with these options

Locally the app works, but when published on the server I'm getting the error

these are the runtimes on my server:
C:\Users\Administrator>dotnet --list-runtimes
Microsoft.AspNetCore.App 5.0.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Do I have to install any other component? Where can I have more information about?
UPDATE the error on event log is the following: Application '/LM/W3SVC/3/ROOT/bis' with physical root 'C:\inetpub\wwwroot\gesweb' failed to load coreclr. Exception message: CLR worker thread exited prematurely Process Id: 6460. File Version: 16.0.22081.4. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: f9ae0f5d30be2de3c0de61b5673bd8873231d70a
Thanks in advance
Solution 1:[1]
Try to see the Event Logs on Windows to get more information:
Go to the Search bar then search for EventViewer
Select the app and start it.
Navigate to SystemLogs, then Application Logs, you will be able to see Asp or IIS logs. This is the best way to see the errors.
If you can't see the error in the logs due to a lot of Warning logs, on the right-hand side there is a Filter Log link, click on it to filter and see only Errors.
And you can also use failed request tracking to view detailed error information.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | samwu |

