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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory'

(0) ShareShare
ReportReport
Posted on by 244

Hello all,

 I am getting the Above Error ,while I  try to generate following Command in Command prompt

 

CrmSvcUtil.exe /url:myresourcemoin.api.crm8.dynamics.com/.../Organization.svc /out:GeneratedCode.cs /username:"realusesrname" /password:"realpassword"



I have latest of the XRM Sdk and Visual-studio 2015 Community edition,using Pulg-in registration i am able to login into CRM.

This is Online CRM trail version. 

1680.CRMSVCUtil.png

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory'

    Did you ever solve this? I can't find that .dll version anywhere.

  • Suggested answer
    CRASH Profile Picture
    2 on at
    RE: Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory'

    Hi,

    1.)Go to windows features

    2.)Look for Windows Identity Foundation 3.5

    3.)Enable it

    Just a guess, if you have already connected to any CRM via SDK, on same PC, then this wont be the issue, but if you recently started working on that machine, then this might be it. Give it a try.

  • Sairam89 Profile Picture
    244 on at
    RE: Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory'

    Thanks ...prt33k...Installed in My Project where I need the ,I generated the XRM we need following dll  

    1) Microsoft.Xrm.Tooling.Connector.dll -->  v 2.2.0.0

    2) Microsoft.Xrm.Tooling.CrmConnectControl.dll-->  v 2.2.0.0

    3)Microsoft.IdentityModel.Clients.ActiveDirectory --> v 2.2.0.0

    All version need to Match ...I did Mistake version Error what , i have  

    Microsoft.IdentityModel.Clients.ActiveDirectory--->  v 3.13.9

  • Verified answer
    prt33k Profile Picture
    6,907 on at
    RE: Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory'

    When you say install - Did you put them in GAC?

    Also can you try to GAC the exact version :

    www.nuget.org/.../2.22.302111727

  • Sairam89 Profile Picture
    244 on at
    RE: Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory'

    I have already Installed that package but latest version    Microsoft.IdentityModel.Clients.ActiveDirectory.3.13.9

  • Suggested answer
    Dynamics_Alok Profile Picture
    1,746 on at
    RE: Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory'

    Install  Microsoft.IdentityModel on your PC.

  • Suggested answer
    prt33k Profile Picture
    6,907 on at
    RE: Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory'

    You can get the Microsoft.IdentityModel.Clients.ActiveDirectory.dll from below and then GAC the dll.

    www.nuget.org/.../Microsoft.IdentityModel.Clients.ActiveDirectory

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans