0

I have a program written in .net language. I don't have sources for it. I added it to my program as assembly and all is fine unless I try to create it's main form:

GCRebuilder.MainForm main_wnd = new GCRebuilder.MainForm();

Here I getting exception FileNotFoundexception. Unable to load a file or assembly "gcr, Version=1.0.3480.29421, Culture=neutral, PublicKeyToken=null" or one of it's dependencies. Unable to find specified file. That program that I trying to load is a single exe only.

It there anything can be done or this is waste of time? I need this to use program functionality through invoking needed for me methods of main form.

Alex H
  • 1,424
  • 1
  • 11
  • 25
Kosmo零
  • 4,001
  • 9
  • 45
  • 88
  • 2
    Look in the the _fusion log_ to see what it doesn't find. – Jester Jan 13 '15 at 17:51
  • @Jester - sorry, could you tell what is this? I don't know about something like that exist. – Kosmo零 Jan 13 '15 at 17:52
  • See the [msdn page](http://msdn.microsoft.com/en-us/library/e74a18c4.aspx). You can also enable it using the registry and open the text log files yourself. See [this question](http://stackoverflow.com/questions/255669/how-to-enable-assembly-bind-failure-logging-fusion-in-net). – Jester Jan 13 '15 at 17:54
  • Make it as answer about fusion log. I were able to do so and found out that exe had different name than my program attempts to load. I changed it and now can create main form fine enough. Well, I can't display it because of unknown Null Reference exception, but I think this is different story. – Kosmo零 Jan 13 '15 at 18:13

1 Answers1

1

You might want to check DotPeek (free software) for viewing the source code of the assembly.

DrinkBird
  • 834
  • 8
  • 17
  • This is unbelievable! This thing decompiled exe and made solution that compiled and started just after a few error fixes! – Kosmo零 Jan 13 '15 at 19:09