This is a migrated thread and some comments may be shown as answers.

Size Difference between Source and Recompiled .DLL

5 Answers 26 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 26 Feb 2013, 09:55 PM
Hello,

When I take a .NET .DLL file and decompile it, save it to a project and then rebuild it the new file is 11K smaller than the old file. Does that mean that something isn't decompiling right?

Even without changed it, when I recompile the DLL it throws an exception when I drop it back into my website.

Thanks for any help in advanced.

Sincerely,
Aaron K. Clark

5 Answers, 1 is accepted

Sort by
0
Momchil
Telerik team
answered on 27 Feb 2013, 09:27 AM
Hi there,

Thanks for your feedback. I really appreciate this.

The size difference of 11k doesn't necessarily mean that there is something wrong with the decompilation.   It could be a result of differences in the metadata of the two assemblies, some optimizations at our side like removing code that is impossible to reach (in the context of a single method) or, in fact, most probably -- just a compiler difference between the original code and the code we have produced.

However, your second question might have something to do with incorrect decompilation.  Despite being able to generate code which is fully compilable, we still might have produced some incorrect code.

I would like to ask you if you can archive the dll and send it over to me at my e-mail address which is
MomchilI . Ivanov at telerik . com (spaces removed, at == @), so that we can further investigate what the eventual problem might be.

Thanks again and happy decompiling!
 
Kind regards,
Momchil
the Telerik team
Tell us what you think about JustDecompile. Your opinion matters! You can use our forum, or our JustDecompile UserVoice website for feature requests.
0
Aaron
Top achievements
Rank 1
answered on 27 Feb 2013, 01:44 PM
Momchil,

Thanks for the quick response. I have fired off that email. If for whatever reason you don't get it. They can be found at 
http://www.cryptospace.com/~akclark/dlls.7z

Thanks again for your help!

Sincerely,
Aaron Clark.
0
Momchil
Telerik team
answered on 01 Mar 2013, 12:58 PM
Hi again,

Unfortunately,  we are not able to find out what exactly the problem might be with the compiled dll. Could you, please, provide some specific details about what you think went wrong with the decompilation? What piece of code seems to be decompiled wrong?

Thanks in advance.

Regards,
Momchil
the Telerik team
Tell us what you think about JustDecompile. Your opinion matters! You can use our forum, or our JustDecompile UserVoice website for feature requests.
0
Aaron
Top achievements
Rank 1
answered on 01 Mar 2013, 02:17 PM
Momchil,

Thanks for your response. The error message we are getting is this error:

FindResource failed with error -2147023083????


Documented in the ASP.NET Forums here: http://forums.asp.net/t/1058699.aspx/1

Supposedly, according to this blog post: http://dotnettemplar.net/VisualInheritanceWithUserControlsInASPNET20WebApplications.aspx 

you can have the application call LoadControl once on the base control so that ASP.NET will properly set it up for use, and then you can use it as a base.

Thanks,
Aaron C.
0
Momchil
Telerik team
answered on 04 Mar 2013, 09:51 AM
Hi there,

We checked out these articles. Rather unfortunately, at this point we don't cannot really confirm this is caused by an issue with the decompiled code produced by JustDecompile. Could you trace back this problem to a specific piece of code in your assembly so that we can have a look at this code and verify it is equivalent to the underlying MSIL?

Regards,
Momchil
the Telerik team
Tell us what you think about JustDecompile. Your opinion matters! You can use our forum, or our JustDecompile UserVoice website for feature requests.
Tags
General Discussions
Asked by
Aaron
Top achievements
Rank 1
Answers by
Momchil
Telerik team
Aaron
Top achievements
Rank 1
Share this question
or