Solving “The project file ‘ ‘ has been renamed or is no longer in the solution”

We were recently faced with the error message The project file ‘ ‘ has been renamed or is no longer in the solution in Visual Studio 2005. The problem is that from this message you have no idea what is actually the matter. We finally figured out that this happens when a Web Project contains references to assemblies or projects it can’t find. Here’s how you solve this:



  1. Right click the Web project and select Property Pages.

  2. A window will open which lists all the references, either to the bin-folder, GAC or other projects in the solution.

  3. Remove those that show (unavailable) behind it.

  4. Chances are that now you can’t build because the reference is not there. Simply add the reference again and you should be OK.

9 thoughts on “Solving “The project file ‘ ‘ has been renamed or is no longer in the solution”

  1. John

    I received the same error and I try this but did not find any (unavailable) references. I did finally figure this out. In the solution (.sln) file there is a "ProjectReferences=…" statement which give a {GUID}|Assembly Name list seperated by semi-colons. The project I did remove was still in the list. After removing this GUID/Assembly entry I was back up and running. Your solution above is probably 99.9% helpful but I believe I really messed up my site – I was attempting to code before knowing what I wanted, i.e. "Should this be a project or simply part of the website", etc.

    Thanks!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *