Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Plugin Error: Could not load file or assembly 'Microsoft.SharePoint.Client, Version=16.1.0.0

Posted on by Microsoft Employee

Hi All,

I have created one plugin to get file from Sharepoint. The plugin code is working fine in the Console app but when I register on an event. When the plugin hit I can see below mentioned Error in Plugin Logs:

Message: Could not load file or assembly 'Microsoft.SharePoint.Client, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified Detail:

I have tried the solution from google but could not fix it.  

Your help would be really appreciated.

Thank you.

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Plugin Error: Could not load file or assembly 'Microsoft.SharePoint.Client, Version=16.1.0.0

    You can't reference external DLLs in your plugin.

    For now, I recommend you to use the rest api instead of the SharePoint SDK. You can refer to the following example:

    www.itaintboring.com/.../

    According to wave 1 2021, we will be allowed to use external DLLs on our plugins. This will be realized in a few days.

    docs.microsoft.com/.../dependent-assemblies-plug-ins

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans