web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Plugin with External DLL

(0) ShareShare
ReportReport
Posted on by

Hi All,

We have requirement to use third party DLL for SMS Sending from Our PLUGIN.

We added reference of third party DLL in plugin and register it in DATABASE with Isolation Mode - NONE.

What ever the third party DLL that we have put on <MS CRM>\server\bin\assembly folder.

But it is still giving error.

Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]:

Lead--Update--SMS-Plugin : Could not load file or assembly 'YBL.TSG.SMS_DLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=73c9e516374da00c' or one of its dependencies. The system cannot find the file specified.Detail

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Aman Kothari Profile Picture
    on at

    Hi jayesh,

    For using SMS DLL into your plugin code ,you need to merge this with plugin DLL.

    For merge DLL , please check below article

    nicknow.net/dynamics-crm-ilmerge-dll-plugin

    Thanks

  • Community Member Profile Picture
    on at

    Agreed I would register the dll in the GAC but ilmerge is an option here also.

  • Community Member Profile Picture
    on at

    Can you please explain how to do this.

    We have 2 DLL in plugin reference.

    1] Plugin DLL

    2] SMS DLL

    How can I register both in GAC. When I am registering plugin DLL  in GAC then its giving error like .

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unable to load plug-in assembly.

    Detail: <OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts&quot; xmlns:i="www.w3.org/.../XMLSchema-instance&quot;>

     <ErrorCode>-2147204719</ErrorCode>

     <ErrorDetails>

  • Verified answer
    Community Member Profile Picture
    on at

    You need the Gacutil application on your server (from visual studio), the dlls should be in the same folder as the application.

    The links below should point you in the right direction

    https://msdn.microsoft.com/en-us/library/ex0ss12c(v=vs.110).aspx

    http://jussionsharepoint.com/using-global-assembly-cache-tool-gacutil-exe-effectively/

    Navigate to that folder running console. (I have created a bat file that I run that has the code below)

    gacutil /u DocumentFormat.OpenXml
    gacutil /i DocumentFormat.OpenXml.dll

    Hope this helps

  • Verified answer
    ansrikanth Profile Picture
    3,115 on at

    I would suggest to use a service (WCF) instead of accessing the third party dlls directly in the plugin/il merge/gac..

    This way, the solution is loosely coupled, expendable.. You dont need to disturb your crm if you have to change your third party sms vendor, you dont need to bother if you are moving to CRM Online.. It might be additional work now, but that makes a clean solution ..

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans