Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

I cannot connect CRM Dynamics in Plugin Registration

(0) ShareShare
ReportReport
Posted on by 5

When I'm trying to connect my dynamics credencials  in the plugin registration, I got this message;

Source : Microsoft.Xrm.Sdk
Method : .ctor
Date : 27.07.2020
Time : 18:43:58
Error : The value cannot be NULL.
Parametername: serviceConfiguration.CurrentServiceEndpoint
Stack Trace : bei Microsoft.Xrm.Sdk.Client.ServiceProxy`1..ctor(IServiceConfiguration`1 serviceConfiguration, SecurityTokenResponse securityTokenResponse)
bei Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy..ctor(IServiceManagement`1 serviceManagement, SecurityTokenResponse securityTokenResponse)
bei Microsoft.Xrm.Tooling.Connector.CrmWebSvc.CreateAndAuthenticateProxy[T](IServiceManagement`1 servicecfg, Uri ServiceUri, Uri homeRealm, ClientCredentials userCredentials, ClientCredentials deviceCredentials, String LogString, CrmLogEntry logSink)
bei Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, Uri homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials, CrmLogEntry logSink)
bei Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, Uri homeRealmUri, NetworkCredential networkCredential, CrmLogEntry logSink)
bei Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(Uri discoveryServiceUri, Uri homeRealmUri, NetworkCredential networkCredential)
bei Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)

I already tried many versions of SDK. I am always not sucefull. I have been tried for many days. Can someone help me?

My Microsoft.Xrm.Sdk.dll version is 9.0.45.2282

  • Suggested answer
    sdfasdf Profile Picture
    sdfasdf 840 on at
    RE: I cannot connect CRM Dynamics in Plugin Registration

    Hello,

    According to the call stack you shared, this is an authentication issue. Are you trying to log on with a user from your domain? if so, could you please try logging on with a "@tenant.onmicrosoft.com" user?

    Additionally, you may want to collect Fiddler traces to inspect what endpoint is actually throwing this error and start troubleshooting from there.

    I hope it helps!

  • Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: I cannot connect CRM Dynamics in Plugin Registration

    this is a generic error message, as you are saying you have tried many version of sdk, check to check are you able to connect to your CRM org using any console application, it can help to narrow down this issue, if you have download SDK helper projects try to run sample applications and see you are able to connect to your organization.

  • RE: I cannot connect CRM Dynamics in Plugin Registration

    Hi, Mahen

    Yes, I already tried with XrmToolBox. It didn't work as well.

    Thanks

  • Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: I cannot connect CRM Dynamics in Plugin Registration

    Hi,

    Have your tried to connect using XrmToolBox, check if you are able to connect from there.

  • RE: I cannot connect CRM Dynamics in Plugin Registration

    Hello, Bipin Kumar!

    Thanks for trying to help me, but I already tried your solution and didn't work. I tried now one more time but I was not working.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,961 Moderator on at
    RE: I cannot connect CRM Dynamics in Plugin Registration

    Hi,

    Download latest sdk tool from below link and try.

    https://xrm.tools/

    make sure you delete all files from below location before you run the tool downloaded from above link.

    C:\Users\kumar\AppData\Roaming\Microsoft\PluginRegistration

    If found helpful, Please mark my answer verified.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,375 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans