Skip to content
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

Add developer exception page middleware to the web api templates #949

Closed
danroth27 opened this issue Jun 14, 2017 · 5 comments
Closed

Add developer exception page middleware to the web api templates #949

danroth27 opened this issue Jun 14, 2017 · 5 comments
Assignees
Milestone

Comments

@danroth27
Copy link
Member

We should add developer exception page middleware to the web API templates so that you get some diagnostic error information in the response when there is a 500 in development.

@mlorbetske
Copy link
Contributor

mlorbetske commented Jul 21, 2017

Is this just adding

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

to the WebAPI templates' Startup.cs?

@mlorbetske mlorbetske added this to the 2.1 Preview 1 milestone Jul 21, 2017
@danroth27
Copy link
Member Author

Yes, and the necessary nuget package when running on the .NET Framework.

@mlorbetske
Copy link
Contributor

Do you know offhand which package that is? Things seem to be working without updating the packages

mlorbetske added a commit to mlorbetske/templating that referenced this issue Jul 21, 2017
@danroth27
Copy link
Member Author

Microsoft.AspNetCore.Diagnostics

@mlorbetske
Copy link
Contributor

Sweet, this seems to be getting pulled in via the Microsoft.AspNetCore package, so I think we're good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants