Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to 9.1 CRM Organizations #339

Closed
tgradu opened this issue Nov 5, 2018 · 4 comments
Closed

Unable to connect to 9.1 CRM Organizations #339

tgradu opened this issue Nov 5, 2018 · 4 comments

Comments

@tgradu
Copy link

tgradu commented Nov 5, 2018

Hello,

When i want to connect to my CRM Online 9.1 Organization, the connection fails with:

Connect-CrmOnline -Credential $cred -ServerUrl $serverUrl

IsReady : False
IsBatchOperationsAvailable : False
Authority :
OAuthUserId :
ActiveAuthenticationType : Office365
OrganizationServiceProxy :
OrganizationWebProxyClient :
LastCrmError : Unable to Login to Dynamics CRMOrganizationServiceProxy is nullOrganizationWebProxyClient is null
LastCrmException :
ConnectionLockObject : System.Object
ConnectedOrgVersion : 9.1.0.288
CallerId : 00000000-0000-0000-0000-000000000000
SdkVersionProperty :

If i connect t my 8.2 Org ( same username & password, only different URL)
Connect-CrmOnline -Credential $cred -ServerUrl $serverUrl

IsReady : True
IsBatchOperationsAvailable : True
Authority :
OAuthUserId :
ActiveAuthenticationType : Office365
OrganizationServiceProxy : Microsoft.Xrm.Tooling.Connector.CrmWebSvc+ManagedTokenOrganizationServiceProxy
OrganizationWebProxyClient :
LastCrmError : OrganizationWebProxyClient is null
LastCrmException :
ConnectionLockObject : System.Object
ConnectedOrgVersion : 8.2.2.2464
CallerId : 00000000-0000-0000-0000-000000000000
SdkVersionProperty :

Is there an issue with the tool?

Later Edit: I replaced locally on my machine ...\Documents\WindowsPowerShell\Modules\Microsoft.Xrm.Data.Powershell\2.8.1.3 the Microsoft.Xrm.Tooling.Connector.dll build 3.0.0.945 with 3.0.0.951 and now it works fine

Connect-CrmOnline -Credential $cred -ServerUrl $serverUrl

MaxRetryCount : 3
RetryPauseTime : 00:00:01
IsReady : True
IsBatchOperationsAvailable : True
Authority :
OAuthUserId :
ActiveAuthenticationType : Office365
OrganizationServiceProxy : Microsoft.Xrm.Tooling.Connector.CrmWebSvc+ManagedTokenOrganizationServiceProxy
OrganizationWebProxyClient :
LastCrmError : OrganizationWebProxyClient is null
LastCrmException :
ConnectionLockObject : System.Object
ConnectedOrgVersion : 9.1.0.288
DisableCrossThreadSafeties : False
CallerId : 00000000-0000-0000-0000-000000000000

So i guess a NuGet package update is needed.

@seanmcne
Copy link
Owner

seanmcne commented Nov 7, 2018

I’ll test the current released version against a v9.1 instance quick and see if I can repro - I don’t know of any reason we would ship a breaking change requiring a library update so closely in versions. Do you have the exception generated?

@seanmcne
Copy link
Owner

seanmcne commented Nov 7, 2018

Here is a test I just did locally on my machine - is it possible you had a much older version of this module that maybe didn't have TLS 1.2 forced in it yet?

Can you run

get-module -name Microsoft.xrm.data.powershell

image

image

@tgradu
Copy link
Author

tgradu commented Nov 7, 2018 via email

@seanmcne
Copy link
Owner

Thanks Radu! I wonder if the older version of the client was loaded or loading by default - glad to hear things are working now though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants