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

Unable to login to Dynamics CRM #56

Closed zenecamickeyd closed 4 years ago

zenecamickeyd commented 6 years ago

I recently installed the latest version (1.2018.7.26) and had to uninstall the following 2 plugins before XRMToolBox would load:

  1. Colso.DashboardTransferTool
  2. Colso.Xrm.ChartTransferTool

Now however I cannot connect to either our Production or Sandbox D365O instances. I simply get the message "Unable to login to Dynamics CRM". I have attached what I believe is the log file containing the error(s).

XrmToolBox_Connection-2018-07-18.log

MscrmTools commented 6 years ago

Hi, I'm using latest version with D365 Online (v8.2 and v9) and OnPremise (v8.2) instances without any trouble so the problem should not be related to XrmToolBox.

There is many root cause for the error message in the logs, like wrong password, unsynced computer time between your computer and the server, proxy that causes some kind of troubles...

zenecamickeyd commented 6 years ago

I've just tried to create a new connection using the Organization URL https://[organization unique name].crm4.dynamics.com with the following settings:

When I click Next I get the message "Value cannot be null. Parameter name: 's'".

We use SSO and I can successfully access both of our D365O instances via a web browser and my SSO credentials.

MscrmTools commented 6 years ago

Can you try not to use your current credentials but type your credentials again?

zenecamickeyd commented 6 years ago

I've just done that and now get the message "Unable to Login to Dynamics CRM". I tried this with the option Save password as encrypted string in connections file both ticked and unticked, and I get the same error message.

MscrmTools commented 6 years ago

what kind of username do you use?

zenecamickeyd commented 6 years ago

O365 email address. This has been working absolutely fine until the last install.

MscrmTools commented 6 years ago

So it should be good...

Latest version did not change the way connecting to D365 Online is made so I clearly don't understand why it does not work...

I guess I know the answer but is there any chance your provide me credentials privately so I can try myself to connect?

zenecamickeyd commented 6 years ago

No, sorry I can't do that.

MscrmTools commented 6 years ago

ok, so I cannot do anything for you, I am sorry. If there was really a global issue when connecting to CRM Online, then I guess I would have received a lot of issues here and you are the first and only one so far

zenecamickeyd commented 6 years ago

Do you have any suggestions? We are in the middle of implementing a load of view changes, which the View Designer plugin is invaluable for.

Like I said I've been using the tool a lot recently and have had any issues connecting until today, and I've not changed any of the connection details or my password.

I could do a screen share session if you think it would help.

MscrmTools commented 6 years ago

The only suggestion I have so far is to download previous version, if the problem really comes from the new version

zenecamickeyd commented 6 years ago

Got a link for the previous version? Do I need to uninstall the current version first?

MscrmTools commented 6 years ago

Here is the link

You can keep the newest version but to be sure you don't share any settings, before running XrmToolBox, create a shortcut for xrmtoolbox.exe and edit it, add the following argument : /overridepath:.

It tells XrmToolBox to install its files (plugins, settings, etc.) on the same folder where xrmtoolbox.exe is located

shytikov commented 6 years ago

Are you connecting via connection string?

I believe this errorS (there are plenty of them around connection module) are related to connection strings. For some reason (I haven't checked the code yet) when I use connection string XTB still tries to go for discovery URL, which is empty. So...

There are some other sporadic things, that I not able to reproduce every time — changes in connection string is not saved, connection is impossible to delete (!!!), sometimes pressing Back button on connection dialog crashes whole app...

I will try to add my 2¢ to fixing that, but for me looks like fresh version is not usable unless connections from previous one are preserved, and not changed.

SrinivasPodili commented 5 years ago

@MSCRMTools: I am also facing the same issue from last couple of months. Can you please check and fix the issue?

SrinivasPodili commented 5 years ago

logs

MscrmTools commented 5 years ago

Can you send log files?

SrinivasPodili commented 4 years ago

I am getting this error only when connecting from Internet. Inside on premise/internal same tool is working without any issue. attached the logs

SrinivasPodili commented 4 years ago

Logs XrmToolBox_Connection-2019-11-23.log

SrinivasPodili commented 4 years ago

@MscrmTools : I have uploaded the logs.