Search code examples
.netvisual-studio-2012projects-and-solutions

Visual Studio 2012 1 of 4 projects not loading


  • Visual Studio 2012, TFS, Windows 7

We have a C# solution that has 4 projects. One of the projects fails to load. When loading the solution I recieve and error stating "One or more projects in the solution were not loaded correctly. Please see the Output Window for details." The output window shows "$devpath\Remits\Business\Admin.Portal\Remits\Business\Admin.Portal\Remits.Business.Admin.Portal.csproj" where $devpath stands in for local src path for brevity.

If I attempt to reload the project I get an error stating "The project file '$devpath\Remits\Business\Admin.Portal\Remits\Business\Admin.Portal\Remits.Business.Admin.Portal.csproj' has been moved, renamed or is not on your computer."

The path to the project is $devpath\Remits\Business\Admin.Portal\Remits.Business.Admin.Portal.csproj. You will notice that there is a section in the path that is being repeated unnecessarily. I have used notepad++ to look at the .sln and .csproj but I don't know enough about the fields to have fixed the issue.

I have look for possible solutions but haven't found a fix yet. Some of the sites I have looked at suggest deleting the .suo file but that didn't resolve the problem. If it is needed to see some of the fields in the .sln and .csproj I will be happy to provide them. Thanks for any help you can provide.

http://tzuhsun.wordpress.com/2012/07/20/the-project-file-0-has-been-moved-renamed-or-is-not-on-your-computer/

http://codingcramp.blogspot.com/2011/03/project-file-has-been-moved-renamed-or.html

older: http://social.msdn.microsoft.com/Forums/en-HK/tfsgeneral/thread/a4c3f944-f36b-4a8d-9cb5-a1133f717ce5

Solution file info:

    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Remits.Business.Admin.Portal", "Remits.Business.Admin.Portal.csproj", "{2D08EC70-FAC0-4360-910C-0435FD4BE6E6}"
    Global
        GlobalSection(TeamFoundationVersionControl) = preSolution
            SccNumberOfProjects = 4
            SccProjectUniqueName0 = Remits.Business.Admin.Portal.csproj
            SccProjectName0 = .
            SccAuxPath0 = http://someTFSserver:8080/tfs/defaultcollection
            SccLocalPath0 = .
            SccProvider0 = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
                   ..snip..
        GlobalSection(TeamFoundationVersionControl) = preSolution
            SccNumberOfProjects = 4
            SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
            SccTeamFoundationServer = http://someTFSserver:8080/tfs/defaultcollection       
            SccProjectUniqueName0 = Remits.Business.Admin.Portal.csproj
            SccProjectName0 = Remits/Business/Admin.Portal
            SccLocalPath0 = Admin.Portal

Solution

  • If you are not familiar with the solution file structure, I suggest you:

    1. make an extra copy of the unloading project
    2. remove the unloading project form your solution and make sure it's gone from the file system except the extra copy you made
    3. add a new project to recreate the unloading project to your solution
    4. once your solution loads fine, you can remove your extra backup