Click here to Skip to main content
15,901,666 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm developing a web application using visual studio 2010, After power failure, My aspx.cs page opens in a notepad instead of visual studio and i am not able to see any code in that file. Is there any way to recover this file?
Posted
Updated 19-Feb-14 4:26am
v3
Comments
Krunal Rohit 19-Feb-14 10:27am    
File is there within directory ?

This situation is very common and I personally face this in few occasions.

You have some limited scope but you can try all of these -
1. try system restore
2. if you are using any source control, you can get the previous version
3. use your last backup to restore most latest version backed up (provided you do backups regularly)
4. Try file recovery option -
http://www.piriform.com/recuva[^]

This is good one and works 80%, depending upon how many times you reboot the system.
Note: if you do system restore, then file recovery option will not be able to get the lost files.
So, make sure while doing system restore.

Lastly, this is a discipline that we all developers should follow to cope up with such situation. Take regular backups always. Don't miss!

Good luck!
Cheers
Sandip
 
Share this answer
 
Comments
VICK 20-Feb-14 1:08am    
My 5+. :)
Definitely not easy.

But you can try restoring it from windows backup,if you are using it already.

You can also see this [^] discussion and try out some of the tools.

The thing is in these cases, not all tools work at all times. You have to try and see. So, you may also want to consider that rewriting the code is easier than doing this futile exercise.

By the way why is your file not checked in at periodic intervals?

[Please accept/up-vote answers or solutions that work for you to encourage others]
 
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