0
votes

I have a blazor application (Framework .NET6) published on my hosted server. The application is configured as a website app called bis on IIS enter image description here

The project is published with these options enter image description here

Locally the app works, but when published on the server I'm getting the error enter image description here

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

enter image description here

Thanks in advance

1

1 Answers

0
votes

Try to see the Event Logs on Windows to get more information:

  1. Go to the Search bar then search for EventViewer

  2. Select the app and start it.

  3. 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.

  4. 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.