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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unable to retrieve the organizations from the Discovery Service.

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    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.

  • Verified answer
    Raghu Bhupathiraju Profile Picture
    40 on at

    Hi Aric,

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

    Thanks for your suggestion.

    Regards,

    Raghu Varma.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans