Tutorial :where can I find a copy of a .aspx.vb file that I lost?



Question:

I had a little disaster: I did an "undo checkout" in my .aspx.vb file and lost all my work.

How can I recover my code?

Can I find it in the Temporary ASP.NET Files? If so, where? Is there any other VS2010 temporary files folder worth checking? A visual sourcesafe temporary folder?


Solution:1

You can check on

c:\WINDOWS\Microsoft.NET\Framework\{Version of asp}\Temporary ASP.NET Files\  

You can find there a compiled version of your file (if you did not compiled again). From this version you can recover easy your file by deleting some lines.

Also in this temporary dir, there are the DLL of the compilations, you can find the one you miss and is the page you lose, and open it with NetReflector - there you can get the code you miss with out any problem.

If you have vista, or windows 7, there is also the ShadowCopy, if it is enable you have some of the last versions of your file and you can get them by just see the properties of your file.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »