decompile back to source

Page 1 of 1

3 Replies - 405 Views - Last Post: 24 April 2014 - 04:57 PM Rate Topic: -----

#1 melech  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 24-April 14

decompile back to source

Posted 24 April 2014 - 05:10 AM

Hi,

I'm trying to decompile an old software that I need to start using again.
when I tried to open the file in ILSpy I got this message
"This file does not contain a managed assembly"

I tried all other decompilers but still no luck.

Please I really need help with this.

Many thanks.
Is This A Good Question/Topic? 0
  • +

Replies To: decompile back to source

#2 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 3649
  • View blog
  • Posts: 11,417
  • Joined: 05-May 12

Re: decompile back to source

Posted 24 April 2014 - 05:40 AM

I guess this shows you the value of having source control and backups. :) Checking in code and making sure that your source code repository is backed up would have made this a non-issue.

Anyway, if that error message is to believed, then you probably have a native DLL/EXE, and not a managed assembly. If the other tools you have tried using also report the same thing, then it very likely true. At that point, you can run some tools to disassemble the binary to go from machine language to assembly language, and then there are some tools that can try to reconstruct C or C++ code from the assembly language. As far as I know, there are no tools that go from assembly back to IL. If you do find such a tool, when you have the IL, then you can go back to C#.
Was This Post Helpful? 0
  • +
  • -

#3 Curtis Rutland  Icon User is offline

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4559
  • View blog
  • Posts: 7,972
  • Joined: 08-June 10

Re: decompile back to source

Posted 24 April 2014 - 06:37 AM

Yep, that means you're trying to decompile something that's not a .NET Assembly. Let me ask this: are you sure this program was written in C# or VB.NET? Because if not, of course you can't decompile it with a .NET decompiler.
Was This Post Helpful? 0
  • +
  • -

#4 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5628
  • View blog
  • Posts: 12,075
  • Joined: 02-June 10

Re: decompile back to source

Posted 24 April 2014 - 04:57 PM

We have no way to confirm that what you are trying to decompile is really your own code.
We won't help or publish techniques for decompiling source code because for all we know it will be used to pirate other people's intellectual property. As we're all in the business of earning a living from our I.P. we frown on people ripping off developers.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1