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

White screen of death on error #69

Closed
juzzbott opened this issue Mar 4, 2015 · 2 comments
Closed

White screen of death on error #69

juzzbott opened this issue Mar 4, 2015 · 2 comments

Comments

@juzzbott
Copy link

juzzbott commented Mar 4, 2015

Hi,

I'm trying to develop an asp.net 5 website using Mono and Kestrel development server. When the website compiles properly, I'm able to load the website without any dramas on the local development port after launching k kestrel

However, if there is an error with my .cshtml view file (referencing wrong model), or even something as simple as a null reference exception error, the Kestrel web server just returns a white screen of death, without any explanation to the cause of the error, either on the webpage (like the traditional asp.net yellow error pages) or within the terminal running Kestrel.

Is there any way that I can determine what is causing the error? The null reference exceptions aren't too bad, by I'm unable to determine the error within my view.

Cheers,
Justin

@davidfowl
Copy link
Member

By design. If you want to see errors, then use the Diagnostics middleware https://github.com/aspnet/Diagnostics/blob/dev/samples/ErrorPageSample/Startup.cs#L10

@juzzbott
Copy link
Author

juzzbott commented Mar 4, 2015

Thanks for the info, makes sense :)

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

No branches or pull requests

2 participants