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 :
Service | Customer Service, Contact Center, Fie...
Unanswered

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

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

I have the same question (0)
  • Tristan A Shortland Profile Picture
    on at

    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

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 61 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 42 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans