Reputation: 77
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://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
Upvotes: 2
Views: 12163
Reputation: 470
The same problems had occurred with me! No need to do those above things! Check: If you have changed any folder name or folder structure while saving last time. Check whether all files are at their correct place and correctly named?
That's it! You will get your solution ready, cause i get it!
Upvotes: 0
Reputation: 5672
I had this problem with a web project and it turned out to be related to corrupt IIS Express configuration.
I manually removed the project bindings in the IIS Express config and tool out the line;
in my .csproj file. Hope this helps somebody else who finds their way here.
Upvotes: 3
Reputation: 12586
If you are not familiar with the solution file structure, I suggest you:
Upvotes: 3