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

Hong 1,221 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,447 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Ken Tucker 5,861 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

  3. Salman Zindani 0 Reputation points
    2025-03-07T17:57:45.0733333+00:00

    After a long and arduous battle with the VS Gods, here’s what finally worked for me:

    • Deleted both the bin and obj folders. (I had only been deleting bin before and kept running into the same issue.)
    • Deleted both the bin and obj folders. (I had only been deleting bin before and kept running into the same issue.)
    • Removed the {Project}.csproj.user file. (Not sure if this was necessary, but I did it during debugging.)
    • Ran the app as an administrator.
    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.