Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Unable to retrieve the organizations from the Discovery Service.

Posted on by 40

Hi folks,

When trying to connect to connect my Plugin Registration Tool to the Discovery URL i get this error for Dynamics CRM 2011 OnPremise:


" Unable to retrieve the organizations from the Discovery Service.

Would you like to see the details for this error? "

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at Microsoft.Crm.Tools.PluginRegistration.AutoRefreshSecurityToken`2.RenewTokenIfRequired()
at Microsoft.Crm.Tools.PluginRegistration.ManagedTokenDiscoveryServiceProxy.ValidateAuthentication()
at Microsoft.Xrm.Sdk.Client.ServiceContextInitializer`1.Initialize(ServiceProxy`1 proxy)
at Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy.Execute(DiscoveryRequest request)
at Microsoft.Crm.Tools.PluginRegistration.CrmConnection.RetrieveOrganizations()
at Microsoft.Crm.Tools.PluginRegistration.ConnectionsForm.OpenConnection(CrmConnection con)

I already tried the following options but nothing worked:

1. Deleted the config file

2. Changed the System time to suit the server time

3. my system has dotnet 4.6 already installed.

Any suggestions ?

Regards,

Raghu Bhupathiraju.

*This post is locked for comments

  • Verified answer
    RE: Unable to retrieve the organizations from the Discovery Service.

    Hi Aric,

    Awesome, I installed (enabled) the Windows Identity Foundation and then it worked.

    Thanks for your suggestion.

    Regards,

    Raghu Varma.

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Unable to retrieve the organizations from the Discovery Service.

    Do you have Microsoft.IdentityModel installed on the machine where you are running the Plugin Registration Tool from (as per error message)?

    www.microsoft.com/.../details.aspx

    Please check that this is the correct version (based on your Operating System).

    For Windows 8 or above, you can install it using the Add/Remove feature or Turn Windows features on or off from your Control Panel -> Programs.

    Hope this helps.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans