From f9ed27c3a0dcd68d29cfd76ae8b12cb2f77b5788 Mon Sep 17 00:00:00 2001 From: Chris R Date: Tue, 16 Jun 2015 12:09:18 -0700 Subject: [PATCH] React to removal of ErrorPageOptions.ShowAll. --- src/MusicStore/Startup.cs | 6 +++--- src/MusicStore/StartupNtlmAuthentication.cs | 10 +++++----- src/MusicStore/StartupOpenIdConnect.cs | 6 +++--- .../shared/Mocks/StartupOpenIdConnectTesting.cs | 6 +++--- .../compiler/shared/Mocks/StartupSocialTesting.cs | 6 +++--- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/MusicStore/Startup.cs b/src/MusicStore/Startup.cs index c830984145..abfdb992b9 100644 --- a/src/MusicStore/Startup.cs +++ b/src/MusicStore/Startup.cs @@ -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); diff --git a/src/MusicStore/StartupNtlmAuthentication.cs b/src/MusicStore/StartupNtlmAuthentication.cs index 4036bebe39..2dbdf67079 100644 --- a/src/MusicStore/StartupNtlmAuthentication.cs +++ b/src/MusicStore/StartupNtlmAuthentication.cs @@ -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; diff --git a/src/MusicStore/StartupOpenIdConnect.cs b/src/MusicStore/StartupOpenIdConnect.cs index ebe34ecc38..bdf112f61e 100644 --- a/src/MusicStore/StartupOpenIdConnect.cs +++ b/src/MusicStore/StartupOpenIdConnect.cs @@ -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); diff --git a/test/E2ETests/compiler/shared/Mocks/StartupOpenIdConnectTesting.cs b/test/E2ETests/compiler/shared/Mocks/StartupOpenIdConnectTesting.cs index 552fd843b1..d7cc1ded11 100644 --- a/test/E2ETests/compiler/shared/Mocks/StartupOpenIdConnectTesting.cs +++ b/test/E2ETests/compiler/shared/Mocks/StartupOpenIdConnectTesting.cs @@ -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); diff --git a/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs b/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs index 3cf3d3b64b..7a3c3d12f7 100644 --- a/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs +++ b/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs @@ -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);