React to errorhandler and errorpage extension name changes
This commit is contained in:
parent
18a2663531
commit
77a8eca1fd
|
|
@ -128,7 +128,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();
|
app.UseDeveloperExceptionPage();
|
||||||
|
|
||||||
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);
|
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);
|
||||||
|
|
||||||
|
|
@ -149,7 +149,7 @@ 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");
|
||||||
|
|
||||||
app.UseErrorHandler("/Home/Error");
|
app.UseExceptionHandler("/Home/Error");
|
||||||
|
|
||||||
Configure(app);
|
Configure(app);
|
||||||
}
|
}
|
||||||
|
|
@ -163,7 +163,7 @@ 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");
|
||||||
|
|
||||||
app.UseErrorHandler("/Home/Error");
|
app.UseExceptionHandler("/Home/Error");
|
||||||
|
|
||||||
Configure(app);
|
Configure(app);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ namespace MusicStore
|
||||||
|
|
||||||
// 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: Not recommended for production.
|
// Note: Not recommended for production.
|
||||||
app.UseErrorPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
|
||||||
// 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.
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,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();
|
app.UseDeveloperExceptionPage();
|
||||||
|
|
||||||
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);
|
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,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();
|
app.UseDeveloperExceptionPage();
|
||||||
|
|
||||||
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);
|
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -174,7 +174,7 @@ namespace MusicStore
|
||||||
|
|
||||||
// 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: Not recommended for production.
|
// Note: Not recommended for production.
|
||||||
app.UseErrorPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
|
||||||
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);
|
app.UseDatabaseErrorPage(DatabaseErrorPageOptions.ShowAll);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue