Question

I have an ASP.NET 2.0 legacy website with me, in which I have to fix two bugs in the website.
The problem is that we ( me and client ) do not have the source code for this website.

All we have is the FTP where the compiled and hosted version of the website resides.
Now, we are pretty sure that the developer has not intentionally done anything to obfuscate that compiled code with any other third party tools. He have just used the standard Visual Studio compiler.

My questions are

  1. Is it possible to get the source code from the compiled version?
  2. How can I get the source code from this compiled version?
  3. What other options do I have?
  4. Will .NET reflector be handy to extract the code?
Was it helpful?

Solution

Yes, .Net Reflector should be all you need to decompile the code (without comments, anyway).

Try opening the DLL files from the bin directory inside .Net Reflector and see if you can make sense of it.

EDIT: It appears that after investigating ILSpy, which Adrian Iftode mentioned, there is an open source plugin for .Net Reflector called Reflexil that does what you need - modifying compiled DLLs. That would be well worth a look at!

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