Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio lost current code on sudden crash

My visual studio 2010 crashed when some carelessness [bit of madness] mistakenly pressed start button and my Acer timeline got unstable. Two projects where open at the time, one in visual studio 2005 [I have both 2005 and 2010 installed]. Unfortunately I lost all the codes I had done at the time along with those coded even weeks before. Now the project files in both the solutions are those weeks older. Amazingly, the .aspx pages are intact and .cs files are gone.

What can be done to get the lost data? Help please.

Thanks.

like image 986
sangam Avatar asked Dec 04 '22 21:12

sangam


2 Answers

Guys TAKE CARE if your Visual Studio crashes, you need to check the backup BEFORE you restart Visual Studio and check if your files are ok! Many people complain that they lost work after a crash, and then they restart Visual Studio, and upon discovering that their code cannot be found in Visual Studio they then check the backup at the location

%USERPROFILE%\Documents\Visual Studio 2010\Backup Files\\

The order is important. Check the backup FIRST, before restarting Visual Studio. If you start Visual Studio and then open your old project it's probable that Visual Studio will overwrite the backup files for that project.

Securing the backup is your FIRST concern. Then start Visual Studio and open your project to see how much damage there is.

like image 167
Mishax Avatar answered Feb 04 '23 23:02

Mishax


You can check:

C:\Users\<username>\Documents\Visual Studio 2010\Backup Files\<ProjectName>\
C:\Users\<username>\Documents\Visual Studio 2005\Backup Files\<ProjectName>\

More information can be found here: Visual Studio 2010 AutoRecover Feature

like image 24
Jon Avatar answered Feb 05 '23 00:02

Jon