Click here to Skip to main content
16,012,468 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I was working on asp.net project MVC , in visual studio 2017 express when suddenly my computer crashes. after I restart the computer. I start Visual studio and I find that 1 controller class file to be completely empty. it contained more than 1600 lines of codes before the class. is there anyway i can recover that file?

please help me

What I have tried:

no idea to do any because this is unexpected accident
Posted
Updated 20-Mar-19 23:15pm
Comments
ZurdoDev 21-Mar-19 9:19am    
Do you have source control? Was there custom code in it? If not, you can have it regenerated.
Richard Deeming 21-Mar-19 10:26am    
NB: A controller with > 1600 lines of code sounds like a bad design. There must be a way to break some of that code out into smaller classes, preferably following the single responsibility principal. :)
sayli1995 22-Mar-19 2:28am    
Thanks sir ,
i appreciate your comments , i am a student and i am learning with this
this a perches system and its include 37 views with data transaction ,
but thanks your valuable instructions i will be follow this in my next project

1 solution

Do you use an online backup system? If not then your source file is probably impossible to recover. You could try one of the many free disk recovery systems, such as AOMEI[^], to see if it can find the original text.
 
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