Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Catch selfhost Startup errors and show them in the browser #77

Closed
Tratcher opened this issue Sep 23, 2014 · 5 comments
Closed

Catch selfhost Startup errors and show them in the browser #77

Tratcher opened this issue Sep 23, 2014 · 5 comments

Comments

@Tratcher
Copy link
Member

When anything goes wrong with Helios' startup code path it will catch those errors, finish starting the server, and send an error page in response to any HTTP requests.

When anything goes wrong with the Self-Host startup code path it will throw an exception and crash the process. If you're lucky the exception will be printed on the console, but even this requires setting the ASPNET_ENV to Development. This is even harder to debug in AppFabric or Azure Worker roles.

Proposal: Move/duplicate some of Helios' startup logic into the Hosting package. When errors occur locating the startup class/method or executing it, catch those and generate a default error page application instead.

There are only a small class of errors that would prevent the server from actually starting and serving such an error page (address conflicts, compiler errors, etc.), so we should be able to provide the error page for a range of common errors.

@Tratcher
Copy link
Member Author

Related: How would you adjust the level of detail as to not leak information in production?

@Tratcher
Copy link
Member Author

@GrabYourPitchforks

@glennc glennc added this to the Backlog milestone Feb 12, 2015
@davidfowl
Copy link
Member

I like this suggestion

@muratg
Copy link

muratg commented Sep 22, 2015

@Tratcher feel free to move this to RC1.

@davidfowl
Copy link
Member

This cannot be moved to RC1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants