Skip to content

Give better error description, log errors in Windows Event Log where available when app bootstrap fails #25862

Closed
dotnet/AspNetCore.Docs
#24138
@brgrz

Description

@brgrz

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.

Additional context

dotnetcore-bootrstraperror

Metadata

Metadata

Assignees

Labels

✔️ Resolution: FixedThe bug or enhancement requested in this issue has been checked-in!DocsThis issue tracks updating documentationDoneThis issue has been fixedExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.affected-fewThis issue impacts only small number of customersarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-iisIncludes: IIS, ANCMseverity-minorThis label is used by an internal tooltask

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions