Question

I really hope you can help... Visual Studio 2010 crashed on me earlier this morning. Normally when that happens I will get the option to recover the files, unfortunately this never appeared and when I opened the solution the aspx page I was working on has lost about 99% of it's coding (nearly a week work with 4000 lines!!!).

I have checked in the Visual Studio folder and there are no backup files so that route is out the window. For some reason the .cs file that is associated with that aspx file is fine but the aspx code is gone. Annoyingly this page had been stuck into version controlling but just not committed yet (yes I know, live and learn...) so that option is out the window too.

I have tried using .NET Reflector to reverse engineer the dll file but that has only given me back the .cs files which I already have.

So I guess what I am really asking is...Is there anyway to recover just the aspx pages and not just the .cs files?

Any help will be greatly appreciated.

Thanks.

Was it helpful?

Solution

Check-out my answer here: Lost the content of ASPX page on computer restart before Saving the file

NEXT TIME YOU WILL BE SAVED ... :D

OTHER TIPS

One quick and dirty method is if you were previewing your page, then copy the source of that page and past in your aspx page.

If not then I am sorry to say that you have lost your changes.

Unless you have a backup or the ASPX file was committed to source code control (e.g. TFS, git, SVN), the file is likely lost.

Even if your organization frowns on commits of partially implemented code, you can always use your own source control system, such as a local git or SVN repository. It does not help you now but it may help in the future.

You might try doing a file search on your system for a temp file from the right time period. There's no guarantee, of course, but it's possible that it might still be hanging around, even if VS didn't retain it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top