Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Unable to load Plugin Assembly

Posted on by 381

Hi All,

     I am registering plugin in plugin registration tool, it's getting below error,

"Unable to load plugin Assembly"

I used IL merge for merging Newtonsoft json dll with my plugin dll.

I have two helper classes(one is static class) to fetch data from external Api and convert it into c# classes to insert records in CRM D365.

Thanks,

Parashuram Jadhav

*This post is locked for comments

  • Parashuram  Profile Picture
    Parashuram 381 on at
    RE: Unable to load Plugin Assembly

    Thank you so much Scott, I also strongly support not to use ILMerge for Json DLL merging .I faced so much issues in last two days for ILMerge.

    Initially I downloaded latest version of Json, it started giving error while building solution in merging DLL Process. I googled and come to know that Json 10.0.2 version will work ILmerge.

    So now I am able register plugin without issue by using deserializing process which is mentioned in link as www.develop1.net/.../ILMergeNotSupported

  • Suggested answer
    ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: Unable to load Plugin Assembly

    Hi,

    You should never use IL merge in plugin assemblies because it is not supported and will cause you issues in the future.

    Rather than use newtonsoft’s assembly you can use the standard .net Json handling - see www.develop1.net/.../ILMergeNotSupported

    Hope this helps

  • Parashuram  Profile Picture
    Parashuram 381 on at
    RE: Unable to load Plugin Assembly

    Thanks for replying Rawish, ?yes I downloaded latest one and from Nuget too.

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Unable to load Plugin Assembly

    Hi Parashuram,

    Kindly also confirm if you are using latest dynamics crm assmeblies? Download from nuget?

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans