React to removal of ErrorPageOptions.ShowAll.

This commit is contained in:
Chris R 2015-06-16 12:09:18 -07:00
parent 4366bbb81d
commit f9ed27c3a0
5 changed files with 17 additions and 17 deletions

View File

@ -130,9 +130,9 @@ namespace MusicStore
// StatusCode pages to gracefully handle status codes 400-599.
app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage");
//Display custom error page in production when error occurs
//During development use the ErrorPage middleware to display error information in the browser
app.UseErrorPage(ErrorPageOptions.ShowAll);
// Display custom error page in production when error occurs
// During development use the ErrorPage middleware to display error information in the browser
app.UseErrorPage();
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);

View File

@ -91,12 +91,12 @@ namespace MusicStore
app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage");
//Error page middleware displays a nice formatted HTML page for any unhandled exceptions in the request pipeline.
//Note: ErrorPageOptions.ShowAll to be used only at development time. Not recommended for production.
app.UseErrorPage(ErrorPageOptions.ShowAll);
// Error page middleware displays a nice formatted HTML page for any unhandled exceptions in the request pipeline.
// Note: Not recommended for production.
app.UseErrorPage();
//Set up NTLM authentication for WebListener like below.
//For IIS and IISExpress: Use inetmgr to setup NTLM authentication on the application vDir or modify the applicationHost.config to enable NTLM.
// Set up NTLM authentication for WebListener like below.
// For IIS and IISExpress: Use inetmgr to setup NTLM authentication on the application vDir or modify the applicationHost.config to enable NTLM.
if ((app.Server as ServerInformation) != null)
{
var serverInformation = (ServerInformation)app.Server;

View File

@ -115,9 +115,9 @@ namespace MusicStore
app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage");
//Display custom error page in production when error occurs
//During development use the ErrorPage middleware to display error information in the browser
app.UseErrorPage(ErrorPageOptions.ShowAll);
// Display custom error page in production when error occurs
// During development use the ErrorPage middleware to display error information in the browser
app.UseErrorPage();
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);

View File

@ -123,9 +123,9 @@ namespace MusicStore
app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage");
//Display custom error page in production when error occurs
//During development use the ErrorPage middleware to display error information in the browser
app.UseErrorPage(ErrorPageOptions.ShowAll);
// Display custom error page in production when error occurs
// During development use the ErrorPage middleware to display error information in the browser
app.UseErrorPage();
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);

View File

@ -183,9 +183,9 @@ namespace MusicStore
app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage");
//Error page middleware displays a nice formatted HTML page for any unhandled exceptions in the request pipeline.
//Note: ErrorPageOptions.ShowAll to be used only at development time. Not recommended for production.
app.UseErrorPage(ErrorPageOptions.ShowAll);
// Error page middleware displays a nice formatted HTML page for any unhandled exceptions in the request pipeline.
// Note: Not recommended for production.
app.UseErrorPage();
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);