Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

after upgrading CRM 2016 to version 8.2.3 getting SharePoint dll issue for custom plugin

(0) ShareShare
ReportReport
Posted on by 651

Hi,

we have integration between sharepoint 2013 and CRM 2016,recently after we ugraded CRM to version 8.2.3 as recommended by MS,getting sharepoint dll issue for custom plugin

48655.1.jpg

Error log:

Could not load file or assembly 'Microsoft.SharePoint.Client, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71b9bce111d1119d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


Plugin Trace:

[Orga.SharePoint: Orga.SharePoint.WorkflowActivities.CreateSharePointFolderActivity]
[Orga.SharePoint (1.0.0.0): Orga.SharePoint.WorkflowActivities.CreateSharePointFolderActivity]
Organization Unit
Create Folder For Profile - Start


Error Message:

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.SharePoint.Client, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71b9bce111d1119d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   at Orga.SharePoint.Repositories.SharePointRepository..ctor(String serverUrl, NetworkCredential credentials)
   at Orga.SharePoint.Services.SharePointService.CreateFolderForProfile(Guid entityId, ITracingService tracingService)
   at Orga.SharePoint.WorkflowActivities.CreateSharePointFolderActivity.Execute(CodeActivityContext executionContext)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

*This post is locked for comments

  • Integration Profile Picture
    651 on at
    RE: after upgrading CRM 2016 to version 8.2.3 getting SharePoint dll issue for custom plugin

    hi,

    By updating the Plug in client dlls with the SDK of 365 files and,after updating the plugin working fine now.

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at
    RE: after upgrading CRM 2016 to version 8.2.3 getting SharePoint dll issue for custom plugin

    if the version 16 works the only production, i assume since its Client Side Library and it has backward compatibility and could work for most of the commands.

    is your production instance is also on the same installation?

    There are few other explanations for this error then

    01. Invalid DLL cache - if this is the case restarting the server and doing an IISreset after should resolve this

    02. The .NET version difference between now and before the upgrade - may be a thing to check

  • Integration Profile Picture
    651 on at
    RE: after upgrading CRM 2016 to version 8.2.3 getting SharePoint dll issue for custom plugin

    hi,

    Thanks for update.

    No we haven't updated any DLL or plugin, other then running in place upgrade to version 8.2.3. in test environment.

    In production still this dll or plugin working fine, when i checked the SharePoint client dll there, it shows version 16.0

    06355.Untitled.png

  • Verified answer
    Kokulan Profile Picture
    18,054 on at
    RE: after upgrading CRM 2016 to version 8.2.3 getting SharePoint dll issue for custom plugin

    Hi

    Yes the 2013 version is 15 but your code has reference to 16.

    Did someone update your code recently? If so they seem to have downloaded 2016 Client DLL and referenced in Workflow solution and deployed to CRM

    Deployment will not fail because CRM will only try to load the assembly referenced when code executed and it looks like on the CRM server GAC you have older version

    If this is the case, you will  have to update your code to use version 15 DLLs and re-deploy your Workflows project 

    Hope this helps

  • Integration Profile Picture
    651 on at
    RE: after upgrading CRM 2016 to version 8.2.3 getting SharePoint dll issue for custom plugin

    hi Eswaran,

    One more query the dll error shows it requires SharePoint client version 16.0.0.0 which is related to sharepoint 2016 version i belive,but we are using sharepoint 2013 version which use to work fine before upgrade to Dynamics 365 on premise from CRM 2016.

    So SharePoint 2013 integration will be a problem now?

  • Verified answer
    Kokulan Profile Picture
    18,054 on at
    RE: after upgrading CRM 2016 to version 8.2.3 getting SharePoint dll issue for custom plugin

    The error message you get is for the following reason

    "This assembly does not match what was requested and therefore you get this error. In simple words, it can't find the assembly that was referenced. Make sure it can find the right assembly by putting it in the GAC or in the application path"

    stackoverflow.com/.../the-located-assemblys-manifest-definition-does-not-match-the-assembly-reference

    Could you check the Sharepoint Client DLL version referenced in your project in Visual Studio?

    It looks like its able to find the Sharepoint Client DLL but it not finding the correct version of the DLL.

    I assume you added your Sharepoint client DLLs to GAC? if so could you check the version of the GAC DLL and the version referenced in your Custom Workflow Acitivty project?

    Please see the following links on how to check GAC dll versions

    stackoverflow.com/.../how-to-view-the-folder-and-files-in-gac

    docs.microsoft.com/.../how-to-view-the-contents-of-the-gac

    Hope this helps

  • Integration Profile Picture
    651 on at
    RE: after upgrading CRM 2016 to version 8.2.3 getting SharePoint dll issue for custom plugin

    Hi,

    I done CRM in place upgrade

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at
    RE: after upgrading CRM 2016 to version 8.2.3 getting SharePoint dll issue for custom plugin

    I assume your integration is purely based on SharePoint client side library CSOM?

    Did you do a CRM in place upgrade or installed on a separate server and imported the old org to new server?

  • Integration Profile Picture
    651 on at
    RE: after upgrading CRM 2016 to version 8.2.3 getting SharePoint dll issue for custom plugin

    hi Eswaran,

    I updated the Post with Error log details.

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at
    RE: after upgrading CRM 2016 to version 8.2.3 getting SharePoint dll issue for custom plugin

    Could your share the error detail please?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans