how to recover the code behind files?

hi,

this is an urgent question.

i happened to remove all my code behind after released my project last week.

now, all aspx files are up to date and all .cs files have been compiled(source .cs files gone)

who can tell me how to recover my .cs files? Note: SourceSafe is down, that's why i lost .cs files

thanks

viola
LVL 6
viola123Asked:
Who is Participating?
 
Razzie_Connect With a Mentor Commented:
You'll need, as tusharashah said, a decompiler to decompile your dll files. I've never really used programs like those myself, but I believe a *good* decompiler will retrieve some source code. You can test the whole idea of it by running ildasm.exe in your VS.NET\FrameworkSDK\bin dir and load your dll's. It will show methods, ctor's, etc, just not code.

This tool: http://www.devhood.com/tools/tool_details.aspx?tool_id=354 is said to retrieve source code. It is open source, so you won't have to pay for it. Give it a shot!

HTH,

Razzie
0
 
tusharashahCommented:
you can retrieve almost anything from Windows after it is deleted. There are commercial software available for this:

http://www.pcinspector.de/file_recovery/UK/welcome.htm

Also check out some other option and trials at:
http://www.download.com/3120-20_4-0.html?qt=Recover+FIle&tg=dl-2001

-tushar
0
 
tusharashahCommented:
Also check out this DLL to Code generator for .Net :

http://www.remotesoft.com/salamander/
http://www.junglecreatures.com/DesktopDefault.aspx

-tushar
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
viola123Author Commented:
sorry, the files is actually overwritten, rather than deleted.

another thing is if i should pay for this software.

thanks

viola
0
 
nurbekCommented:
if the files are overwritten

no way to recover the old files or  versions :((
0
 
sachiekCommented:
Hey Hey...what do you mean file over written?

You mean in Visual source safe? If soo then you can retreive old version right?

Sachi
0
 
tomvergoteCommented:
aren't you using version control??
you should really look into a system which lets you retrieve previous versions or deleted files (sourcesafe and subversion come to mind, my vote going to the latter.)
0
 
BuffonCommented:
Check out the Reflector.

http://www.aisto.com/roeder/dotnet/
0
 
AerosSagaCommented:
if you have the .dlls checkout reflector as stated above, if you used sourcesafe your a smart person;)  If neither of these apply to you then your SOL

Aeros
0
 
Razzie_Commented:
Viola123,

Can you clarify the C grade for educational reasons? How helpful was the tool in the accepted answer? What did you have to do to get your .cs files back?

Razzie
0
 
viola123Author Commented:
hi, Razzie:

actually i recoved nothing using that tool. it raised an 'FATAL ERROR' when you try to run that .exe file.

however, i do appreciate your help.

best regards
viola
0
 
Razzie_Commented:
Sorry to hear that. I tested it myself (runs fine) and it does an amazing good job in recovering source code (although you can't export it to a .cs file afaict so you'd have to copy paste). Maybe you can run it on another machine or something. Sorry it didn't work :/
0
 
BuffonCommented:
Hi viola.
I tried a lot of tools for decompiling dlls, and I am advising you to try the Reflector again:
http://www.aisto.com/roeder/dotnet/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.