Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello.
My ASP.net project was stored in external drive and unluckily my external drive got corrupted.
Somehow I have managed to recover data, but now I am trying to load the ASP.net project in VS while getting error one or more projects in the solution were not loaded correctly.

Can anybody help me to get resolve this.

Thank You

What I have tried:

I have already tried some of below solutions.
1. Tried to delete .suo file
2. Tried to load old project files into new fresh project.
Posted
Updated 20-Sep-18 9:48am
Comments
Sascha Lefèvre 8-Feb-16 3:01am    
And why did your attempt to load the files into a new project not work?
Sinisa Hajnal 8-Feb-16 3:12am    
What error do you get? How is it possible that fresh project didn't work? Did you try to open aspx files or cs files in text editor (basic notepad will do) to check that there is something uncorrupted to open?
Member 12256084 8-Feb-16 3:24am    
Hi Sinisa
Thanks for the comments
When I am trying to load recovered project the error I am getting is "one or more projects in the solution were not loaded correctly please see the output".
When I have checked output, error is showing that "Unable to read .csproj file".
Then I have tried to copy the old project fils into new .Solutions, but when I am trying to again rebuild the project error is "all fils failed to rebuild"
For recovered project, it seems that there is something wrong in .csproj file, but I am not able to find out.
Sascha Lefèvre 8-Feb-16 3:52am    
Then dump the project files and include the .cs files into new projects.

1 solution

I had this same problem.  The problem for me was in the .sln file.  At the end of the file there were multiple of the following:

GlobalSection(TeamFoundationVersionControl) = preSolution

EndGlobalSection

I deleted the extra ones and the message went away. 

I believe the cause of this is when TFS merges different check-ins of the solution or some does it manually and does it wrong.

Paul
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900