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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Plugin registration tool error

(0) ShareShare
ReportReport
Posted on by 75

When I run the plugin registration tool and try to connect to an Office 365 instance of Dynamics, it fails to connect and records the following error message in the log text file:

: Method not found: 'System.String Microsoft.Xrm.Sdk.Discovery.OrganizationDetail.get_Geo()

I have tried all available combinations of settings to try to connect but it doesn't work.

I also installed the "Unified Service Desk" desktop application and tried to connect to office 365, this also gave the same error in the error log.

The plugin registration tool is the latest version, installed using the instructions on the following page:

https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/download-tools-nuget

I have tried it on our work network and off it.

I have the same question (0)
  • Johao Larios Profile Picture
    1,795 on at

    Hello, 

    Have you tried with another user? and/or in another computer? 

    Could you share more info from the log file?

  • billybonkers Profile Picture
    75 on at

    Thanks for the response Johao.

    I have tried it with two different users.  One has MFA enabled and the other does not.  I use the other use by running the plugin reg. tool using "run as another user".

    I've installed it on my home computer and the plugin reg tool works perfectly fine.  But on a new work computer it doesn't work at all either on work network or not.  I am wondering if I have installed something else that is interfering with this, however it shouldn't be giving an unhandled exception.

    The log file is below

    Source : Microsoft.Xrm.Tooling.CrmConnectControl

    Method : QueryOnlineServerList

    Date : 25/03/2020

    Time : 10:48:28

    Error : Method not found: 'System.String Microsoft.Xrm.Sdk.Discovery.OrganizationDetail.get_Geo()'.

    Stack Trace : at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.QueryOnlineServerList(ObservableCollection`1 svrs, OrganizationDetailCollection col, ClientCredentials liveCreds, Uri trimToDiscoveryUri, Uri globalDiscoUriToUse)

      at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.FindCrmOnlineDiscoveryServer(ClientCredentials liveCreds)

      at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)

    ======================================================================================================================

    Thanks

  • Suggested answer
    Johao Larios Profile Picture
    1,795 on at

    Hello, thanks for the response. 

    Could you please go to %appdata%\Roaming\Microsoft\PluginRegistration and delete all the files from there? 

    Please try by downloading the PRT directly from here: https://www.nuget.org/packages/Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool

  • Suggested answer
    billybonkers Profile Picture
    75 on at

    Thanks again Johao.  I cleared out the appdata area, and installed the latest version via nuget, but it didn't work still.

    So anyway what I found was that there was an XRM related dll in the GAC.

    C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Xrm.Sdk\Microsoft.Xrm.Sdk.dll

    So I took the Microsoft.Xrm.Sdk.dlll from the latest version of the plugin tool and copied it over the one in the GAC.  After that the plugin registration tool started to work.

    So the plugin tool uses the gac'd version first.  I'm not sure what application I have installed has caused there to be a version of the dll in the GAC.  I couldn't uninstall it from GAC, only overwrite.  There is a Dynamics CRM addin in outlook, so potentially it's that that needs it, but not sure.

  • Johao Larios Profile Picture
    1,795 on at

    Hello Billy Bonkers.

    Thanks so much for sharing your tests and fix.

    This is very specific scenario. I'm doing more research to understand what could be the cause.

    We delivered a change on march related the disco service:  docs.microsoft.com/.../discovery-service

    This is why you were getting the disco service issue using the latest version of the PRT.  

    Thanks again and I'm happy to read that you were able to fix the issue.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans