web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unable to login to DataMigrationUtility.exe (CRM Configuration Migration tool)

(0) ShareShare
ReportReport
Posted on by 15

Hi,

I tried to login to SDK/Tool/DataMigrationUtility.exe (CRM Configuration Migration tool) using a system admin account, it was fine before but it encounters the following error and I can't login today..

Anyone knows how to solve this issue?

I've tried to select Online region as Oceania or don't know, both no luck.  :(

Source : System.Security
Method : Unprotect
Date : 2/11/2016
Time : 3:35:15 PM
Error : Key not valid for use in specified state.
Stack Trace : at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
at Microsoft.Xrm.Tooling.Connector.CrmServiceClientTokenCache..ctor(String cacheFilePath)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.ObtainAuthenticationContext(String Authority, Boolean requireValidation, String tokenCachePath)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, ClientCredentials clientCredentials, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, Boolean isOnPrem, String authority)
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.QueryOAuthDiscoveryServer(Uri discoServer, ClientCredentials liveCreds, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath)
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.FindCrmOnlineDiscoveryServer(ClientCredentials liveCreds)
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    razdynamics Profile Picture
    17,308 User Group Leader on at

    Hi Stella, what is your crm online url... test.crm4.dynamics.com. test.crm5.dynamics.com etc?

    From this we can tell what region you need to select

  • Stella Lin Profile Picture
    15 on at

    I tried to use this on another laptop and was totally fine when I logged in using Oceania....

    But I still can't login using my own laptop...

    Any suggestions?

  • Community Member Profile Picture
    on at

    Hi,

    I am facing similar issue. Are you able to resolve this?

  • Suggested answer
    razdynamics Profile Picture
    17,308 User Group Leader on at

    Hi what OS is running on your laptop and browser version? also maybe your antivirus could be blocking the connection?

  • Stella Lin Profile Picture
    15 on at

    Hi Raz,

    OS: Windows 10 64-bit

    No Anti Virus installed on this laptop.

    Browser IE 11.494.10586.0

    CRM COnfiguration Migration Shell Version: 1.0.0.0

    Any other possibilities? :(

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi, we had a similar problem on a server. The stack was going through same path but with a different error. We had to delete our user profile on the server and recreate it. This way we probably got passed Token cache, where we had no idea of location...

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Stella,

    I also had same issue and i have solved that by downloading the latest Office 365 SDK again.

    From Here : www.microsoft.com/.../details.aspx

    Now I am able to login to my Office 365 site.

    Mark this answer as verified if this helps.

    Thanks,

    Himanshu Prajapati

  • Suggested answer
    Deepak Singh Profile Picture
    164 on at

    [quote user="Stella Lin"]

    Hi,

    I tried to login to SDK/Tool/DataMigrationUtility.exe (CRM Configuration Migration tool) using a system admin account, it was fine before but it encounters the following error and I can't login today..

    Anyone knows how to solve this issue?

    I've tried to select Online region as Oceania or don't know, both no luck.  :(

    Source : System.Security
    Method : Unprotect
    Date : 2/11/2016
    Time : 3:35:15 PM
    Error : Key not valid for use in specified state.
    Stack Trace : at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
    at Microsoft.Xrm.Tooling.Connector.CrmServiceClientTokenCache..ctor(String cacheFilePath)
    at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.ObtainAuthenticationContext(String Authority, Boolean requireValidation, String tokenCachePath)
    at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, ClientCredentials clientCredentials, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, Boolean isOnPrem, String authority)
    at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.QueryOAuthDiscoveryServer(Uri discoServer, ClientCredentials liveCreds, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath)
    at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.FindCrmOnlineDiscoveryServer(ClientCredentials liveCreds)
    at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)

    [/quote]

  • Community Member Profile Picture
    on at

    Hi Stella, 

    I too faced the same issue but resolved by downloading a fresh copy of SDK.

  • Sky_God Profile Picture
    24 on at

    Hi, in my case I needed to download the latest CRM V9 SDK tools for Office 365 Logon:

    https://docs.microsoft.com/en-ca/dynamics365/customer-engagement/developer/download-tools-nuget

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans