Skip to content

Default route issue http://localhost:port/swagger 404 error since VS2017 15.5.1 #559

Description

@PhilippeCamou

I recently upgraded Visual Studio 2017 15.5.1.

So far everything was working fine developing .NET Core (2.0) web apis but after the updates the problems started. The problems occur on existing projects as well as newly created ones.

When I now configure the App URL settings in the project properties to start at http://localhost:50000/swagger the browser opens and shows the wrong url, namely http://localhost:50000/swagger/api/values with the correct response of the ValuesController but not the swagger ui. At this point it shouldn't have the extension /api/values since it is not configured and I don't know why or where this is added (it's not in the configuration).

If I now enter (without stopping the app) http://localhost:50000/swagger I start receiving 404 errors an urls, even on http://localhost:50000/api/values.

If I now enter (without stopping the app) http://localhost:50000/swagger/swagger !!! UI shows but with issue about swagger.json of course.

Firing end points at this step seems to work but with strange 500.19 for somes. At this step no breakpoint in the debug are active and app is not stopping anymore on any breakpoints.

Nothing in configuration have changed only upgrade to VS2017 15.5.1.

Any idea to fix ?

Someone else have issue ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions