MscrmTools / MscrmTools.Xrm.Connection

Provides Winforms control to connect to Microsoft Dynamics CRM deployments
GNU Lesser General Public License v3.0
23 stars 38 forks source link

Cannot create a new connection using `Connection Wizard` #130

Closed BetimBeja closed 3 years ago

BetimBeja commented 3 years ago

It throws an error after I specify the organization url.

System.Exception: Unable to read user password
at McTools.Xrm.Connection.ConnectionDetail.ConnectOnline()
at McTools.Xrm.Connection.ConnectionDetail.GetCrmServiceClient(Boolean forceNewService)
at McTools.Xrm.Connection.WinForms.ConnectionWizard2.<>c.<Connect>b__18_0(Object bwSender, DoWorkEventArgs evt)
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs evt)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

I am attaching a video capture of the steps to reproduce

https://user-images.githubusercontent.com/11160171/104822500-39296780-5843-11eb-8692-ccccd6d0a446.mp4

Also, XrmToolBox version is 1.2021.1.44 and the connection controls version is 1.2021.1.39

BetimBeja commented 3 years ago

After some more debugging I noticed that the Use your current credentials is checked by default, but the Organization Url is an online instance. I believe that in this case you should consider the Organization Url as an on-premise instance or you should ignore the Use your current credentials flag when the url is online.

MscrmTools commented 3 years ago

Yes, it seems something went wrong with this checkbox. Will look at it

Thanks

BetimBeja commented 3 years ago

Closing this as it is fixed in the latest release