Skip to content

Asp.Net Core 3 Preview 7 Web Api is not working and always returns 404 #12648

@whizkidwwe1217

Description

@whizkidwwe1217

Steps to Reproduce:

Prerequisite: ASP.NET Core 3 Preview 7

  1. Run dotnet new webapi. This creates a default web api template with WeatherForecastController.
  2. Run dotnet run or press F5 in VS Code to run in debugger.
    image
  3. Browse https://localhost:5001 or https://localhost:5001/api/weatherforecast
    Issue: Returns 404.
    image
    image

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: DuplicateResolved as a duplicate of another issuearea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions