Hi ALL,
Did any one is facing the same issue, we are not able to Connect to CRM using
"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
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156