React to removal of ErrorPageOptions.ShowAll.
This commit is contained in:
parent
4366bbb81d
commit
f9ed27c3a0
|
|
@ -130,9 +130,9 @@ namespace MusicStore
|
||||||
// StatusCode pages to gracefully handle status codes 400-599.
|
// StatusCode pages to gracefully handle status codes 400-599.
|
||||||
app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage");
|
app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage");
|
||||||
|
|
||||||
//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);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,12 +91,12 @@ 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.
|
||||||
if ((app.Server as ServerInformation) != null)
|
if ((app.Server as ServerInformation) != null)
|
||||||
{
|
{
|
||||||
var serverInformation = (ServerInformation)app.Server;
|
var serverInformation = (ServerInformation)app.Server;
|
||||||
|
|
|
||||||
|
|
@ -115,9 +115,9 @@ namespace MusicStore
|
||||||
|
|
||||||
app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage");
|
app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage");
|
||||||
|
|
||||||
//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);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -123,9 +123,9 @@ namespace MusicStore
|
||||||
|
|
||||||
app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage");
|
app.UseStatusCodePagesWithRedirects("~/Home/StatusCodePage");
|
||||||
|
|
||||||
//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);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -183,9 +183,9 @@ 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