Skip to content

Poor diagnostics when UseErrorHandler points to a non-existing URL (IIS/IIS Express) #2595

Closed
@aspnet-hello

Description

@aspnet-hello

From @Eilon on Monday, August 31, 2015 12:17:01 PM

My project has the usual app.UseErrorHandler("/Home/Error"); call in it, but I forgot that I deleted the /Home/Error action from my app. I'm using IIS Express locally, and IIS on Azure Web Sites.

When I run locally, I get the following IIS error:

HTTP Error 403.14 - Forbidden

The Web server is configured to not list the contents of this directory.

And on Azure it behaves as if my web app never started, showing a "how to upload your site to Azure" default help page.

It would be nice if there was some way to detect this incorrect configuration of my app and show a more meaningful and actionable error. It took me, @muratg, and @anurse quite a while to figure out what was going on.

Copied from original issue: aspnet/Diagnostics#174

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.feature-diagnosticsDiagnostic middleware and pages (except EF diagnostics)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions