Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Can't load file or assembly - plugin referring to external .dll at the GAC

Posted on by 370

Hi Experts, 

We are still using CRM 2013  on prem.  We have a plugin that has a reference to an external DLL on the GAC. We just updated the Server OS and the plugin stopped working. I used Gacutil to add the external DLL to the GAC and did an IISReset and recycled CRMAppPool but it still doesn work. Any advice? Currently we are not looking at merging .dlls. 

 

Error: can't load external assembly ***.bbt.dll

2019_2D00_12_2D00_04-12_5F00_25_5F00_14_2D00_Window.png

GAC

***.bbt.dll is already in GAC

2019_2D00_12_2D00_04-14_5F00_37_5F00_50_2D00_Window.png

  • Suggested answer
    Erin Peng Profile Picture
    Erin Peng 370 on at
    RE: Can't load file or assembly - plugin referring to external .dll at the GAC

    Thanks David. It is resolved now. The ***bbt.dll used in the plugin turned out to be different version from the one at the GAC. Not sure how it happened after server upgrade. But it is working now.

  • Erin Peng Profile Picture
    Erin Peng 370 on at
    RE: Can't load file or assembly - plugin referring to external .dll at the GAC

    Hi David, thanks for the reply. Yes, there is another dependent assembly which is in the GAC already. I tried fusion log viewer tool on my local laptop but it didn't return any logs.  This plugin is registered at database.  I was using plugin profiler debug.

  • Erin Peng Profile Picture
    Erin Peng 370 on at
    RE: Can't load file or assembly - plugin referring to external .dll at the GAC

    Hi David, thanks for the reply. Yes, there is another dependent assembly which is in the GAC already. I tried fusion log viewer tool on my local laptop but it didn't return any logs.  This plugin is registered at database.  I was using plugin profiler debug.

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Can't load file or assembly - plugin referring to external .dll at the GAC

    Is the referenced assembly (***bbt.dll) dependent on any other assemblies, and if so, have they been deployed to the GAC ?

    The fusion log viewer tool may help identify problems loading dependent assemblies

  • Suggested answer
    Thangamani Profile Picture
    Thangamani 507 on at
    RE: Can't load file or assembly - plugin referring to external .dll at the GAC

    Hi,

     Please put the external DLL in the "\Program Files\Microsoft Dynamics CRM\Server\bin: and then do the IISRESET and try to test your plugin.

    Pls mark as verified if this helps.

    Regards,

    Thangamani

  • Suggested answer
    Thangamani Profile Picture
    Thangamani 507 on at
    RE: Can't load file or assembly - plugin referring to external .dll at the GAC

    Hi,

     Please put the external DLL in the "\Program Files\Microsoft Dynamics CRM\Server\bin: and then do the IISRESET and try to test your plugin.

    Pls mark as verified if this helps.

    Regards,

    Thangamani

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans