XrmToolBox icon indicating copy to clipboard operation
XrmToolBox copied to clipboard

[BUG] Unable to add new Connections.

Open mlnc21 opened this issue 1 year ago • 9 comments

Describe the bug Unable to add new Connections.

To Reproduce Connection Manager

  • select a Connection File
  • New connection
  • Microsoft Login Control
  • (use default configuration)
  • Open Microsoft Login Control
  • Deployment Type: Office 365
  • Login
  • Enter Email and Password
  • Accept OAuth
  • Error -> Cant connect to Microsoft Dataverse -O365.

Log:

Source : Not Provided Method : Not Provided Date : 06.06.2024 Time : 14:33:04 Error : A Dataverse server name is required. Parametername: CrmServerName Stack Trace : Not Provided

Source : Microsoft.Xrm.Tooling.Connector Method : MoveNext Date : 06.06.2024 Time : 14:34:34 Error : Methode nicht gefunden: "Void Microsoft.Xrm.Sdk.Discovery.OrganizationDetail.set_SchemaType(System.String)". Stack Trace : bei Microsoft.Xrm.Tooling.Connector.CrmWebSvc.<QueryGlobalDiscovery>d__204.MoveNext() bei System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.Start[TStateMachine](TStateMachine& stateMachine) bei Microsoft.Xrm.Tooling.Connector.CrmWebSvc.QueryGlobalDiscovery(String authToken, Uri discoveryServiceUri, CrmLogEntry logSink) bei Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverGlobalOrganizations(Uri discoveryServiceUri, ClientCredentials clientCredentials, X509Certificate2 loginCertificate, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, Boolean isOnPrem, String authority, CrmLogEntry logSink, Boolean useGlobalDisco, Boolean useDefaultCreds) bei Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, ClientCredentials clientCredentials, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, Boolean isOnPrem, String authority, CrmLogEntry logSink, Boolean useGlobalDisco, Boolean useDefaultCreds) bei Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.QueryOAuthDiscoveryServer(Uri discoServer, ClientCredentials liveCreds, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, Boolean useGlobalDisco) bei Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.QueryOnlineServerList(ObservableCollection1 svrs, OrganizationDetailCollection col, ClientCredentials liveCreds, Uri trimToDiscoveryUri, Uri globalDiscoUriToUse) bei Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.FindCrmOnlineDiscoveryServer(ClientCredentials liveCreds) bei Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)

Screenshots image

Desktop (please complete the following information): image

mlnc21 avatar Jun 06 '24 12:06 mlnc21

It seems you are using beta version of connection controls. Please revert to stable ones, it should work

MscrmTools avatar Jun 20 '24 13:06 MscrmTools

i changed back, but same Issue.

image

image

/////Log Source : Microsoft.Xrm.Tooling.Connector Method : MoveNext Date : 28.06.2024 Time : 15:10:45 Error : Methode nicht gefunden: "Void Microsoft.Xrm.Sdk.Discovery.OrganizationDetail.set_SchemaType(System.String)". Stack Trace : bei Microsoft.Xrm.Tooling.Connector.CrmWebSvc.<QueryGlobalDiscovery>d__204.MoveNext() bei System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.Start[TStateMachine](TStateMachine& stateMachine) bei Microsoft.Xrm.Tooling.Connector.CrmWebSvc.QueryGlobalDiscovery(String authToken, Uri discoveryServiceUri, CrmLogEntry logSink) bei Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverGlobalOrganizations(Uri discoveryServiceUri, ClientCredentials clientCredentials, X509Certificate2 loginCertificate, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, Boolean isOnPrem, String authority, CrmLogEntry logSink, Boolean useGlobalDisco, Boolean useDefaultCreds) bei Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, ClientCredentials clientCredentials, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, Boolean isOnPrem, String authority, CrmLogEntry logSink, Boolean useGlobalDisco, Boolean useDefaultCreds) bei Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.QueryOAuthDiscoveryServer(Uri discoServer, ClientCredentials liveCreds, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, Boolean useGlobalDisco) bei Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.QueryOnlineServerList(ObservableCollection1 svrs, OrganizationDetailCollection col, ClientCredentials liveCreds, Uri trimToDiscoveryUri, Uri globalDiscoUriToUse) bei Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.FindCrmOnlineDiscoveryServer(ClientCredentials liveCreds) bei Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)

mlnc21 avatar Jun 28 '24 13:06 mlnc21

There must be some remaining beta dll somewhere... You shouldn't have this message anymore

MscrmTools avatar Jul 15 '24 14:07 MscrmTools

I am also getting this error message. @mlnc21 were you able to get around this? This was a fresh install for me, so there should not be any beta dll's anywhere.

aprilkae avatar Aug 05 '24 15:08 aprilkae

Even with a fresh install, if your computer already had XrmToolBox installed and you did not change the storage path, it will reuse lot of files from previous installation

MscrmTools avatar Aug 23 '24 15:08 MscrmTools

@aprilkae @mlnc21 I had the same problem and to solve it I had to download a new version of XrmToolBox which I deployed in a different directory to the old version which was already on my PC. I didn't lose my connections and installed tools. I hope this solution helps.

Romaric-Nguena avatar Sep 23 '24 09:09 Romaric-Nguena

@aprilkae @mlnc21 I had the same problem and to solve it I had to download a new version of XrmToolBox which I deployed in a different directory to the old version which was already on my PC. I didn't lose my connections and installed tools. I hope this solution helps.

Thank you so much, this exactly solved my problem. And thanks to OP @mlnc21 for creating the issue so i could discover it (and feel less alone). I much more quickly got back up on my feet thanks to your helps. : )

spearruleina avatar Oct 16 '24 01:10 spearruleina

@aprilkae and @Romaric-Nguena and @spearruleina Thank you for your Inputs :-). sometimes it works and sometimes it doesn't. the connection UI + functions should be revised. I get a login error so often. also that when I select M365 login it requires a password in the UI, which I can only enter when the MS dialog appears. also you should check that you can use the DisplayName default value of the selected Dynamics environment as the display name.

mlnc21 avatar Oct 16 '24 06:10 mlnc21

When using Microsoft Login Control, I have no control at all on how it behaves...

MscrmTools avatar Oct 17 '24 16:10 MscrmTools