Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Not able to Connect to CRM using Microsoft.CrmSdk.XrmTooling, Till this morning it was working

Posted on by Microsoft Employee

Hi ALL,  

Did any one is facing the same issue,  we are not able to Connect to CRM using 

Microsoft.CrmSdk.XrmTooling

"Microsoft.CrmSdk.XrmTooling.CoreAssembly" version="9.0.0.7"

CRM is Dynamics 365 Version 1710(9.1.0.33) 

I have following code : 

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
// Connect to the CRM web service using a connection string.
CrmServiceClient conn = new CrmServiceClient(connectionString);

// Cast the proxy client to the IOrganizationService interface.
if ((IOrganizationService)conn.OrganizationWebProxyClient != null)
{

service = (IOrganizationService)conn.OrganizationWebProxyClient;
}
else if ((IOrganizationService)conn.OrganizationServiceProxy != null)
{
conn.OrganizationServiceProxy.EnableProxyTypes();
service = (IOrganizationService)conn.OrganizationServiceProxy;
}

 

*This post is locked for comments

  • Suggested answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Not able to Connect to CRM using Microsoft.CrmSdk.XrmTooling, Till this morning it was working

    Hello,

    Can you collect a Fiddler while reproducing the issue? Do you see there any errors. Or do you see anything within the LastCrmError or LastCrmException Properties of the CrmServiceClient?

    Also, towards which .NET Framework is this project targeted?

    Are you using any ADAL Nuget packages? I've seen similar issues with the latest ADAL Package.

    In addition to the above, do you have any proxy server / firewall that might be blocking the connection?

    Hope these points can help you get started!

    Regards,

    Radu

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans