When I try to open a project, local or on a Team Foundation Server (TFS), I get a modal window telling me that:
The operation could not be completed: Unspecified error
Or the same message, but with “Class not defined..” instead of “Unspecified error”.
These errors started happening earlier today when I tried to check in some of my work to the team foundation server. I have tried using Visual Studio 2008 on the same computer, but I still get the same error. I’ve also googled for it but none of the solutions seems to help me.
I have installed the latest updates from Windows Update as well.
Any ideas?
Have you tried to delete the
Your_Solution_FileName.suofile?The
.suofile should be in the same folder as your.slnfile, or in the.vsfolder for newer versions of Visual Studio. The.vsfolder might be hidden.Update for Visual Studio 2017
In VS 2017 the
.suofiles are located in a different folder: you can find the.suofile inYourSolutionFolder\.vs\YourSolutionName\v15\.suoThe
.vsfolder is hidden, and the.suofiles is a file without name, with just the.suoextension.Explanation
The
.suofile contain various information like the opened files list, and some preferences that are not saved in the solution file (like the starting project) and other things.Normally you can delete the
.suofile without problems. You might have to set theStartUp Projectfor your solution afterwards.Just to stay on the safe way, you can rename the
.suofile, and then retry to start the solution, to see if this help.In my experience sometime VS crash on start because there is an error in some source code, and due to that error VS can’t compile the code, and then crash because without compiled code it’s unable to show form in design mode.
In this case, deleting the
.suofile will solve the situation because it reset the open files list, so the solution can start up without opening/showing any files.When deleting the .suo file doesn’t works
Here’s a list of other things you can try when deleting the
.suofile doesn’t resolve the issue:/bin/folder and empty the temporary files that VS create during the build process in the/obj/folder (each project that compose the solution has these folders, so clean them all))As a last resort…