Skip to main content

Resolved: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. Dynamics CRM Online - Plugin Registration Tool

I faced this issue during connecting to Dynamics 365 Online Instance. 

I have downloaded the SDK kit from below url

When i tried to connect to CRM online instance using plugin instance, i am getting below error
"The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Bearer error=access_denied, error_description=Authentication fail. Ticket id XXX-XXX, authorization_uri=https://login.windows.net/common/oauth2/authorize, resource_id=https://disco.crm11.dynamics.com/'."

Solution:
I spent around 2 hours resolving this issue and at last found an answer in dynamics forums to get a Latest version of Plugin Registration Tool. It worked like a charm for me.

Steps for getting latest version of Plugin Registration Tool:
  1. Open Visual Studio
  2. Go to Tools > Nuget Package Manager > Package Manager Console
  3. Install latest version of Plugin Registration Tool by providing below command
    Install-Package Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool -Version 9.0.0.7
Browse the downloaded package and run the executable from that folder.

There was a dependency of .NET framework v 4.6.2, I did install that version. After that i was able to connect to CRM Online version with Plugin Registration Tool



Comments