Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Problems with using ILMerge and GUI-ILMerge when merging assemblies

Posted on by Microsoft Employee

I'm trying to merge my plugin assembly with the external libraries it's using (RestSharp, DocuSign, Newtonsoft.Json) so it can run on Dynamics Online

I'm using ILMerge and GUI-ILMerge https://ilmergegui.codeplex.com/ for simplicity but I think the problem lies within ILMerge

Multiple assemblies can be merged without problems as long as the option to sign them is not enabled.

When I try to sign them with my *.snk key, this error comes up 

2017_2D00_07_2D00_28.png

Unable to load DLL 'mscorsn.dll':The specified module could not be found. (0x8007007E)

The missing DLL seems to be from Windows 8. One solution I've found online suggested installing .NET 3.0, but this didn't fix anything.

All assemblies uploaded to Dynamics Online must be signed and this is presenting a roadblock at the moment.

Any suggestions on how to fix this?

*This post is locked for comments

  • rmmontague Profile Picture
    rmmontague on at
    RE: Problems with using ILMerge and GUI-ILMerge when merging assemblies

    My issue was caused by the strongly named key being password protected. Once I removed the password on the key, the build was working correctly.

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Problems with using ILMerge and GUI-ILMerge when merging assemblies

    Hi everyone,

    Try following this guide for setting up ILMerge, and merging assemblies. It may make a difference.

  • rmmontague Profile Picture
    rmmontague on at
    RE: Problems with using ILMerge and GUI-ILMerge when merging assemblies

    Did you ever get this resolved?  I'm running into the same issue.  

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Problems with using ILMerge and GUI-ILMerge when merging assemblies

    I'm using Windows 10

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans