0

I had a problem I lost all my source(CS) of web site pages but I had only published pages on server ,so please if there is any way to recover theses published pages to orignal pages with code,bin folder

Myworld
  • 1,861
  • 16
  • 45
  • 75

6 Answers6

4

You need to decompile the C#. It is an advanced user scenario, but it can be done... sort of.

How do I decompile a .NET EXE into readable C# source code?

Community
  • 1
  • 1
MatthewMartin
  • 32,326
  • 33
  • 105
  • 164
2

try to use reflector. it help you to restore all your code

Andrei Andrushkevich
  • 9,905
  • 4
  • 31
  • 42
1

Use your latest backup copy, or roll back to the previous version of SVN you are working on.

http://www.red-gate.com/products/dotnet-development/reflector/ is a good piece of software for recovering source from a compiled program.

Greg
  • 21,235
  • 17
  • 84
  • 107
0

If your project was a website, you should be able to ftp each file from the server 1 for 1. If your file was a web application project, you're hosed. The code files are compiled into a binary, and if you lost the source code it's gone.

Joel Etherton
  • 37,325
  • 10
  • 89
  • 104
0

http://www.red-gate.com/products/dotnet-development/reflector/ Can decompile .NET assemblies into source code - however it won't be the code you wrote as alot of it will have been changed by the compiler (IE your comments will have gone bye bye)

You can then rebuild your Project in your IDE of choice and you are done.

Chris Harden
  • 356
  • 2
  • 3
0

If the assemblies haven't been obfuscated, you can use reflector to recover your code from the assemblies.

StuartLC
  • 104,537
  • 17
  • 209
  • 285