I accidentally deleted my root project folder. I was able to recover the other files except *.ASPX.CS files. So far I tried Recuva & Pandora.

Any idea how I can recover a double extension file? Please don't blow off saying this is not a programming question. I have 2 weeks worth of coding in these files and lost my project backups also.

link|improve this question
3  
Why not you are using any source control tool ? In these kind of situation that helps you. – Muhammad Akhtar Aug 12 '11 at 19:05
2  
I am sorry that you lost your work but I am not sure how anybody can help you without knowing your dev environment or situation (e.g., how you lost it or why you can't just recover it from recycle) – Taesung Shin Aug 12 '11 at 19:10
feedback

migrated from stackoverflow.com Aug 14 '11 at 13:54

This question came from our site for professional and enthusiast programmers.

4 Answers

You could try looking in the Temporary ASP.NET folder - you might be able to find some remnants of your files there. This is usually C:\Windows\Microsoft.NET\Framework\v[XXXX]\Temporary ASP.NET Files or sometimes C:\Users\[myuserid]\AppData\Local\Temp\Temporary ASP.NET Files

Version control is your friend in these cases.

link|improve this answer
feedback

If you still have the project's DLL file(s) somewhere, e.g., on a test server, you may be able to reverse engineer the C# from those. See post by Caddre in this thread:

.NET reverse engineering links

link|improve this answer
feedback

Jetbrains has a tool called dotPeek which can decompile any managed assembly. It works extremely well and, best of all, it's free. In order to get your source code back, you'll need a copy of your web site's binaries.

link|improve this answer
feedback

A file recovery util often work pretty well. At least it will show file name and a message that file content is rewritten by another file. If it doesn't show special file types at all (like *.cs for C# project (yes, *.aspx.cs file's extension is .cs)) most likely this only means these files aren't deleted. Why? Because something saved it fot you.

E.g., on Windows System restore is enabled by default and will track all *.exe, *.ini, *.ico, *.cs, etc. files. You can use something like System Restore Explorer to browse restore points (not working on Windows XP) or browse it by hands: <drive letter>:\System Volume Information\_restore<GUID>\RP<integer>\<new short name>.<original ext> (and original modification date).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown