Solved

how to recover the code behind files?

Posted on 2004-10-20
13
659 Views
Last Modified: 2006-11-17
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
0
Comment
Question by:viola123
  • 3
  • 2
  • 2
  • +5
13 Comments
 
LVL 18

Expert Comment

by:tusharashah
ID: 12366131
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
 
LVL 18

Expert Comment

by:tusharashah
ID: 12366186
Also check out this DLL to Code generator for .Net :

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

-tushar
0
 
LVL 6

Author Comment

by:viola123
ID: 12366300
sorry, the files is actually overwritten, rather than deleted.

another thing is if i should pay for this software.

thanks

viola
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 13

Expert Comment

by:nurbek
ID: 12367035
if the files are overwritten

no way to recover the old files or  versions :((
0
 
LVL 8

Accepted Solution

by:
Razzie_ earned 500 total points
ID: 12367583
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
 
LVL 11

Expert Comment

by:sachiek
ID: 12368115
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
 
LVL 8

Expert Comment

by:tomvergote
ID: 12368194
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
 
LVL 11

Expert Comment

by:Buffon
ID: 12368638
Check out the Reflector.

http://www.aisto.com/roeder/dotnet/
0
 
LVL 17

Expert Comment

by:AerosSaga
ID: 12368844
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
 
LVL 8

Expert Comment

by:Razzie_
ID: 12408388
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
 
LVL 6

Author Comment

by:viola123
ID: 12428281
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
 
LVL 8

Expert Comment

by:Razzie_
ID: 12428353
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
 
LVL 11

Expert Comment

by:Buffon
ID: 12431114
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question