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
-
6I made you a web page, but I eated it :) – SWeko Dec 20 '10 at 15:28
-
It's not really clear what you're asking here. Are you talking about a CMS? – Rob Stevenson-Leggett Dec 20 '10 at 15:29
-
Depends on how the publish was made, was it a web-site or a web-application, was the code obfuscated? – SWeko Dec 20 '10 at 15:31
6 Answers
You need to decompile the C#. It is an advanced user scenario, but it can be done... sort of.

- 1
- 1

- 32,326
- 33
- 105
- 164
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.

- 21,235
- 17
- 84
- 107
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.

- 37,325
- 10
- 89
- 104
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.

- 356
- 2
- 3