Skip to main content

Notifications

Announcements

No record found.

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

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

(0) ShareShare
ReportReport
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,208 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans