Size Difference between Source and Recompiled .DLL

6 posts, 0 answers
  1. Aaron
    Aaron avatar
    3 posts
    Member since:
    Feb 2013

    Posted 26 Feb 2013 Link to this post

    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
  2. Momchil
    Admin
    Momchil avatar
    31 posts

    Posted 27 Feb 2013 Link to this post

    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.
  3. DevCraft banner
  4. Aaron
    Aaron avatar
    3 posts
    Member since:
    Feb 2013

    Posted 27 Feb 2013 Link to this post

    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.
  5. Momchil
    Admin
    Momchil avatar
    31 posts

    Posted 01 Mar 2013 Link to this post

    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.
  6. Aaron
    Aaron avatar
    3 posts
    Member since:
    Feb 2013

    Posted 01 Mar 2013 Link to this post

    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.
  7. Momchil
    Admin
    Momchil avatar
    31 posts

    Posted 04 Mar 2013 Link to this post

    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.
Back to Top
DevCraft banner