VB.NET and PRECOMPILES HELP

  • Thread starter Thread starter Pinky_n_need_of_a_brian
  • Start date Start date
P

Pinky_n_need_of_a_brian

I am in need of serious help. I developed a web application for a
client while I was travelling and posted the web application to his
website via the Publish web site in Visual Studio 2008. Everything
published just fine and everything works fine.

The problem is my laptop hard drive crashed and I no long have the
source. I need to make changes to the previous code behind files, which
don't exist now. I was able to get a copy of the published web site.

Is there away to restore the code behind files?
 
Pinky_n_need_of_a_brian said:
I am in need of serious help. I developed a web application for a
client while I was travelling and posted the web application to his
website via the Publish web site in Visual Studio 2008. Everything
published just fine and everything works fine.

The problem is my laptop hard drive crashed and I no long have the
source. I need to make changes to the previous code behind files, which
don't exist now. I was able to get a copy of the published web site.

Is there away to restore the code behind files?

If you no longer have access to your *.vb code files, then you will need
to use a decompiler, such as Reflector: http://www.aisto.com/roeder/dotnet/

You will also need an add-in to save the decompiled code to files:
http://www.codeplex.com/reflectoraddins

As long as you haven't used an obfuscator to make decompilation harder,
you should get reasonable results.
 
As Jason said Reflector is the magic word in this case
however you must be aware of the following fact .

The code might look different because of the compilers optimizers , for
instance if you declared a string and used it as a constant the value of
this string is used in method calls , the outcome of the code is the same
but it might look a bit weird to you as you know that you did not code it
this way
dead code is even removed from the assembly

hth

michel
 
Back
Top