Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

Posted on by 240

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

  • Community Member Profile Picture
    Community Member Microsoft Employee 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
    CRASH 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
    Sairam89 240 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
    prt33k 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
    Sairam89 240 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
    Dynamics_Alok 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
    prt33k 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

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