"A project with the same name is already opened in the solution"

Hong 1,216 Reputation points
2022-05-20T21:33:09.933+00:00

I upgraded VS from 2019 to 2022. Many projects cannot be loaded.
When I click "Reload Project" for an ASP.Net MVC project
204108-image.png

I get the error message "A project with the same name is already opened in the solution"
204245-image.png

Could anyone offer a tip on how to remedy this?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,308 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ken Tucker 5,856 Reputation points
    2022-05-22T11:16:39.56+00:00

    Could the project be an older version of MVC? Maybe you need to open the visual studio 2022 installer and install mvc 4 it is under individual components

    204391-image.png

    2 people found this answer helpful.

  2. Edison Henrique Andreassy 0 Reputation points
    2024-12-24T18:33:37.1+00:00

    For me, the problem was caused by a undo change on the .csproj change of IIS Local to IIS Express. The resolution was simple delete the .csproj.user file.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.