电源故障后丢失的aspx.cs页面 [英] Lost aspx.cs page after Power failure

查看:56
本文介绍了电源故障后丢失的aspx.cs页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用visual studio 2010开发一个Web应用程序,电源故障后,我的aspx.cs页面在记事本而不是visual studio中打开,我无法在该文件中看到任何代码。有没有办法恢复这个文件?

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?

推荐答案

这种情况非常普遍,我个人在很少的情况下会面对这种情况。



你有一些有限的范围,但你可以尝试所有这些 -

1.尝试系统恢复

2.如果你使用任何源代码控制,你可以获得以前的版本

3.使用你的上一次备份来恢复备份的最新版本(假设你定期备份)

4.尝试文件恢复选项 -

http://www.piriform.com/recuva [ ^ ]



这是好的,可以正常工作80% ,取决于你重启系统的次数。

注意:如果你进行系统还原,那么文件恢复选项将无法获取丢失的文件。

所以,确保在进行系统还原时。



最后,这是一个我们所有开发人员应该遵循的纪律来应对这种情况。始终进行定期备份。不要错过!



祝你好运!

干杯

Sandip
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


绝对不容易。



但如果您已经使用它,可以尝试从Windows备份恢复它。



您还可以看到 this [ ^ ]讨论并尝试一些工具。



在这些情况下,并非所有工具都能正常工作。你必须试着看。因此,您可能还需要考虑重写代码比执行此操作更容易。



那么为什么你的文件没有定期检查?



[请接受/投票给你的答案或解决方案,以鼓励他人]
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]


这篇关于电源故障后丢失的aspx.cs页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆