Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

When using Hot Reload endpoints get duplicated #44857

Copy link
Copy link

Description

@vsfeedback
Issue body actions

This issue has been moved from a ticket on Developer Community.


[severity:It bothers me. A fix would be nice] [regression] [worked-in:17.3.3]
I'm working on an API project using .NET 6, and when using hot reload, after a certain number of times, the method (and thus the enpoind) gets duplicated. I'm not quite sure if it's a .NET 6 problem or a VS problem.

To replicate (could be a local problem also):

  • Create an edpoint and edit it several times, then hot reload, after multiple times reloading the code the app will get an Microsoft.AspNetCore.Routing.Matching.AmbiguousMatchException: The request matched multiple endpoints.

If I start reloading several times after I get the error, the endpoint will get duplicated the number of times I have hot reloaded my code.


Original Comments

Feedback Bot on 8/30/2022, 07:35 PM:

(private comment, text removed)


Original Solutions

(no solutions)

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Author: Migration Bot 🤖The issue was created by a issue mover bot. The author may not be the actual author.The issue was created by a issue mover bot. The author may not be the actual author.area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcblockedThe work on this issue is blocked due to some dependencyThe work on this issue is blocked due to some dependencybugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-hot-reloadThis issue is related to the Hot Reload feaatureThis issue is related to the Hot Reload feaaturetriaged

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.