React to removal of ErrorPageOptions.ShowAll.
This commit is contained in:
parent
4366bbb81d
commit
f9ed27c3a0
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue