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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

(0) ShareShare
ReportReport
Posted on by 235

I m doing a console app which is adding data to CRM. So the following assemblies are being used:

1.  Microsoft.Xrm.Client(version 7)

2.  Microsoft.Xrm.Sdk (version 8.1.0.235) 

On run time the following error occures:

Could not load file or assembly
'Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
or one of its dependencies. The system cannot find the file specified.

 


I have tried but couldn't find Microsoft.Xrm.Client's latest version.

Please guide how I can resolve it. 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    you should get the latest dll from Nuget and make sure the target .net framework ( at least 4.6.2) is correct since you are using CRM online.

    6327.1.png

    arunpotti.wordpress.com/.../visual-studio-and-the-net-framework-for-dynamics-365-crm-online-v9-x

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    You need to find assemblies for CRM. You could directly add it through nuget packages.

    For console application to perform CRUD, you could use just add "Microsoft.crmsdk.CoreAssemblies". You may need to install the correct version i.e. if you are on V8 then V8 etc.

    Right click project >> Manage Nuget Packages >> search for crmsdk and install

    Hope this helps.

  • gdas Profile Picture
    50,091 Moderator on at

    Hello,

    As per the error you are using sdk version 7.0 , so you have to download the latest sdk and replace the dll Microsoft.xrm.sdk. and others required dll.

  • umma Profile Picture
    235 on at

    Hi Goutam, thanks for replying but as I mentioned in quetion I m not using version 7.

  • umma Profile Picture
    235 on at

    hi thanks for replying. I alreay have this package and I have made my .net frameork 4.62. but still issue is there. :(

  • Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    What is your CRM version ? V9.0 or ?

    you should remove all the related references before using Nuget.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Can you uninstal & reinstall the nuget package? Alo, I don't see  Microsoft.Xrm.Client in the core package, how did you ad reference to this dll?

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hello ,

    I think you need to take all the latest dll reference once for all and build your console application.

    Secondly  you need to create a folder in your console application and put all the dll there and take reference from the file.

    Hope this helps.

  • umma Profile Picture
    235 on at

    by adding another nuget package something Microsoft.xrm.client

    any other way for that ?

  • umma Profile Picture
    235 on at

    ahve done this as well. It is Microsoft Dynamics 365

    Version 1612 (8.2.2.333) (DB 8.2.2.333) online

    should it be someother set of assemblies for this version ?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans