I have been struggling with this for a little while now and have googled it but can't seem to find a headway.
I am trying to connect to my organizations MS Dynamics CRM online environment as such :
$conn = Get-CrmConnection -InteractiveMode
or
$CRMConn = Get-CrmConnection -Credential $Cred -DeploymentRegion NorthAmerica -OnlineType Office365 -OrganizationName orgac2e85bc
in both instances, I get this error message :
Source : Microsoft.Xrm.Tooling.CrmConnectControl
Method : QueryOnlineServerList
Date : 2020-Dec-11
Time : 12:24:02 PM
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)
.
.
I had read on some MS documentation that there will no longer be support for TLS 1.0 and 1.1 so, to add this piece to every script : [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
I did that but the issue has persisted.