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

@ -132,7 +132,7 @@ namespace MusicStore
// Display custom error page in production when error occurs // Display custom error page in production when error occurs
// During development use the ErrorPage middleware to display error information in the browser // During development use the ErrorPage middleware to display error information in the browser
app.UseErrorPage(ErrorPageOptions.ShowAll); app.UseErrorPage();
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll); app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);

View File

@ -92,8 +92,8 @@ namespace MusicStore
app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage"); app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage");
// Error page middleware displays a nice formatted HTML page for any unhandled exceptions in the request pipeline. // 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. // Note: Not recommended for production.
app.UseErrorPage(ErrorPageOptions.ShowAll); app.UseErrorPage();
// Set up NTLM authentication for WebListener like below. // 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. // For IIS and IISExpress: Use inetmgr to setup NTLM authentication on the application vDir or modify the applicationHost.config to enable NTLM.

View File

@ -117,7 +117,7 @@ namespace MusicStore
// Display custom error page in production when error occurs // Display custom error page in production when error occurs
// During development use the ErrorPage middleware to display error information in the browser // During development use the ErrorPage middleware to display error information in the browser
app.UseErrorPage(ErrorPageOptions.ShowAll); app.UseErrorPage();
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll); app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);

View File

@ -125,7 +125,7 @@ namespace MusicStore
// Display custom error page in production when error occurs // Display custom error page in production when error occurs
// During development use the ErrorPage middleware to display error information in the browser // During development use the ErrorPage middleware to display error information in the browser
app.UseErrorPage(ErrorPageOptions.ShowAll); app.UseErrorPage();
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll); app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);

View File

@ -184,8 +184,8 @@ namespace MusicStore
app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage"); app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage");
// Error page middleware displays a nice formatted HTML page for any unhandled exceptions in the request pipeline. // 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. // Note: Not recommended for production.
app.UseErrorPage(ErrorPageOptions.ShowAll); app.UseErrorPage();
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll); app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);