I was working on webpage (Chat.aspx) accidently my system got shutdown. Now my visual studio opening webpage in notepad which is empty(showing nothing).
I also tried it to open with in Html editor, it also showing that file cannot be opened in selected editor please choose another editor.
How can i recover my work/code?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Once I faced the same issue , I researched a lot on internet but in the end I ended up with writing the page again. Basically File pointer in Memory becomes invalid or corrupted due to which OS can not open the file in VS. here is a link for you
When I faced this problem one of the expert suggested me that it is not possible to get back your page .
If you have backup of your page then use that.
Method 2
I recently faced this issue working in VS 2010 and I was breaking my brain. Luckily I had source control, so to solve the issue I manually deleted it the file and got latest version.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0