Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Workflow error "Could not load file or assembly 'Microsoft.XRM.SDK'

Posted on by Microsoft Employee

I have created a workflow using Visual Studio 2015 with Dynamics SDK.

I have successfully published this workflow to Dynamics 365 CRM (online) using the Plugin Registration Tool which was present in the SDK.

When I trigger the process to run I get the error message "Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=nuetral, PublicKeyToken=1234' or one of its dependencies.  The system cannot find the file specified.

The version of XRM.SDK that I am using in my Visual Studio project is 9.0.0.0.

The version of my Dynamics 365 instance is: Version 1612 (8.2.2.330)

This is my first time creating a workflow, so am a bit lost in terms of potential fixes.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow error "Could not load file or assembly 'Microsoft.XRM.SDK'

    Thanks for the answers all.

    I reduced the version of the SDK and it worked.

  • Suggested answer
    Preeti Sharma Profile Picture
    Preeti Sharma 2,678 on at
    RE: Workflow error "Could not load file or assembly 'Microsoft.XRM.SDK'

    Hi,

    You must use sdk with version 8.0 as Dynamics 365 instance i having version 8.2.2.330.

    community.dynamics.com/.../dynamics-365-sdk-backwards-compatibility

    Hope this helps:)

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Workflow error "Could not load file or assembly 'Microsoft.XRM.SDK'

    Can you use the XRM.SDK dll in console application and connect CRM and execute some logic. If its not work then try with some lower version as Wei suggested.

    Hope this helps.

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Workflow error "Could not load file or assembly 'Microsoft.XRM.SDK'

    Hi,

    It certainly does look like a dll version issue. You should use the dll as per your current CRM versions.

    Hope this helps.

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Workflow error "Could not load file or assembly 'Microsoft.XRM.SDK'

    Hi,

    It seems that the version is mismatch, Maybe you can try to use the lower version of SDK. You can refer to below pictures. I am using V8.2 version of SDKto connect Dynamics 365 instance is: Version 1612 (8.2.1.176)

    1108.3.png

    1108.3.png

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