Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Unanswered

CRM SDK cannot connect to CRM 365 on promises "ERROR REQUESTING ORGS FROM THE DISCOVERY SERVER"

Posted on by 10

I am trying to connect to CRM 365 on primases from CRM SDK as following:

CrmServiceClient conn = new CrmServiceClient(new System.Net.NetworkCredential(username, password, domain), server, port, orgName);
IOrganizationService _orgService = (IOrganizationService)conn.OrganizationServiceProxy;

But I got this error in the "LastCrmError" attribute in the conn object:

ERROR REQUESTING ORGS FROM THE DISCOVERY SERVER
ERROR REQUESTING ORGS FROM THE DISCOVERY SERVERThe server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.Unable to login to Dynamics CRM, Error was : The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.
The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.Unable to Login to Dynamics CRM
Unable to Login to Dynamics CRM

It was working fine, but once we enabled https on the crm and IIS with SSL, we got this error. How to fix it?! Thanks

  • RE: CRM SDK cannot connect to CRM 365 on promises "ERROR REQUESTING ORGS FROM THE DISCOVERY SERVER"

    When you enabled SSL, did you update the URLs in the Deployment Manager?

    Also, check the Windows Event Log on the application server as that will give you a better error message, or enable Tracing in Dynamics, again this will get you a better error message.

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans