-
Notifications
You must be signed in to change notification settings - Fork 10.6k
fix #12516 by cleaning up Hosting error page #12545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
fcb06fc
fix #12516 by cleaning up error page
analogrelay 27ebca8
add a Diagnostics.slnf because I was there
analogrelay ee5581a
missed the IIS update
analogrelay fa8b350
update WebHost's error page
analogrelay 78c6dff
Fix slnf path
analogrelay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| "solution": { | ||
| "path": "..\\Middleware.sln", | ||
| "projects": [ | ||
| "..\\Hosting\\Abstractions\\src\\Microsoft.AspNetCore.Hosting.Abstractions.csproj", | ||
| "..\\Hosting\\Hosting\\src\\Microsoft.AspNetCore.Hosting.csproj", | ||
| "..\\Hosting\\Server.Abstractions\\src\\Microsoft.AspNetCore.Hosting.Server.Abstractions.csproj", | ||
| "..\\Hosting\\TestHost\\src\\Microsoft.AspNetCore.TestHost.csproj", | ||
| "..\\Http\\Authentication.Abstractions\\src\\Microsoft.AspNetCore.Authentication.Abstractions.csproj", | ||
| "..\\Http\\Authentication.Core\\src\\Microsoft.AspNetCore.Authentication.Core.csproj", | ||
| "..\\Http\\Http.Abstractions\\src\\Microsoft.AspNetCore.Http.Abstractions.csproj", | ||
| "..\\Http\\Http.Extensions\\src\\Microsoft.AspNetCore.Http.Extensions.csproj", | ||
| "..\\Http\\Http.Features\\src\\Microsoft.AspNetCore.Http.Features.csproj", | ||
| "..\\Http\\Metadata\\src\\Microsoft.AspNetCore.Metadata.csproj", | ||
| "..\\Http\\Routing.Abstractions\\src\\Microsoft.AspNetCore.Routing.Abstractions.csproj", | ||
| "..\\Http\\WebUtilities\\src\\Microsoft.AspNetCore.WebUtilities.csproj", | ||
| "..\\Security\\Authorization\\Core\\src\\Microsoft.AspNetCore.Authorization.csproj", | ||
| "..\\Servers\\Connections.Abstractions\\src\\Microsoft.AspNetCore.Connections.Abstractions.csproj", | ||
| "..\\Servers\\IIS\\IISIntegration\\src\\Microsoft.AspNetCore.Server.IISIntegration.csproj", | ||
| "..\\Servers\\Kestrel\\Core\\src\\Microsoft.AspNetCore.Server.Kestrel.Core.csproj", | ||
| "..\\Servers\\Kestrel\\Kestrel\\src\\Microsoft.AspNetCore.Server.Kestrel.csproj", | ||
| "..\\Servers\\Kestrel\\Transport.Sockets\\src\\Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.csproj", | ||
| "..\\http\\Headers\\src\\Microsoft.Net.Http.Headers.csproj", | ||
| "..\\http\\Routing\\src\\Microsoft.AspNetCore.Routing.csproj", | ||
| "..\\http\\http\\src\\Microsoft.AspNetCore.Http.csproj", | ||
| "Diagnostics.Abstractions\\src\\Microsoft.AspNetCore.Diagnostics.Abstractions.csproj", | ||
| "Diagnostics.EntityFrameworkCore\\src\\Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.csproj", | ||
| "Diagnostics.EntityFrameworkCore\\test\\FunctionalTests\\Diagnostics.EFCore.FunctionalTests.csproj", | ||
| "Diagnostics.EntityFrameworkCore\\test\\UnitTests\\Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests.csproj", | ||
| "Diagnostics\\src\\Microsoft.AspNetCore.Diagnostics.csproj", | ||
| "Diagnostics\\test\\FunctionalTests\\Diagnostics.FunctionalTests.csproj", | ||
| "Diagnostics\\test\\UnitTests\\Microsoft.AspNetCore.Diagnostics.Tests.csproj", | ||
| "Diagnostics\\test\\testassets\\ClassLibraryWithPortablePdbs\\ClassLibraryWithPortablePdbs.csproj", | ||
| "Diagnostics\\test\\testassets\\DatabaseErrorPageSample\\DatabaseErrorPageSample.csproj", | ||
| "Diagnostics\\test\\testassets\\DeveloperExceptionPageSample\\DeveloperExceptionPageSample.csproj", | ||
| "Diagnostics\\test\\testassets\\ExceptionHandlerSample\\ExceptionHandlerSample.csproj", | ||
| "Diagnostics\\test\\testassets\\StatusCodePagesSample\\StatusCodePagesSample.csproj", | ||
| "Diagnostics\\test\\testassets\\WelcomePageSample\\WelcomePageSample.csproj", | ||
| "HttpOverrides\\src\\Microsoft.AspNetCore.HttpOverrides.csproj", | ||
| "MiddlewareAnalysis\\samples\\MiddlewareAnalysisSample\\MiddlewareAnalysisSample.csproj", | ||
| "MiddlewareAnalysis\\src\\Microsoft.AspNetCore.MiddlewareAnalysis.csproj", | ||
| "StaticFiles\\src\\Microsoft.AspNetCore.StaticFiles.csproj" | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is necessary since the property defaults to
false. I thought about defaulting it totruebut I think it's better for users of the page to opt-in to detailed information.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There may be one more place we do this. IIRC we have a hosting startup error page and a detailed errors error page. Can you check these and make sure we set ShowRuntimeDetails appropriately:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked the diagnostics one. It's a little deceptive because it's actually a different error page because it's even more detailed (query strings, headers, etc.) and the middleware is only enabled in
Developmentmode.I did miss GenericWebHostedService. Looking at that now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it was the other way around :). I missed the WebHost one. Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, clarify why you don't need to updat ethe GenericWebHostedService model?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I already did: https://github.com/aspnet/AspNetCore/pull/12545/files#diff-712c8e185558d5014acb35f2f2b86786