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)

CRM 365 Online: Plugin Registration tool login error

(0) ShareShare
ReportReport
Posted on by

Hi 

I have tried to login to Plugin Registration Tool to connect to my Dynamics 365 online system and it throws an error in my login page.

Could you help me in this please?

login-error.PNG

Error:

Source : System
Method : CreateThis
Date : 28/01/2018
Time : 12:09:47
Error : Invalid URI: The hostname could not be parsed.
Stack Trace : at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Net.WebProxy.ProxyUri(String proxyName)
at System.Net.WebProxy.GetProxiesAuto(Uri destination, Int32& syncStatus)
at System.Net.ProxyScriptChain.GetNextProxy(Uri& proxy)
at System.Net.ProxyChain.ProxyEnumerator.MoveNext()
at System.Net.ServicePointManager.FindServicePoint(Uri address, IWebProxy proxy, ProxyChain& chain, HttpAbortDelegate& abortDelegate, Int32& abortState)
at System.Net.HttpWebRequest.FindServicePoint(Boolean forceFind)
at System.Net.HttpWebRequest.BeginSubmitRequest()
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at Microsoft.Xrm.Tooling.Connector.DeviceIdManager.ExecuteRegistrationRequest(String url, DeviceRegistrationRequest registrationRequest)
at Microsoft.Xrm.Tooling.Connector.DeviceIdManager.RegisterDevice(Guid applicationId, Uri issuerUri, LiveDevice device)
at Microsoft.Xrm.Tooling.Connector.DeviceIdManager.RegisterDevice(Guid applicationId, Uri issuerUri, String deviceName, String devicePassword)
at Microsoft.Xrm.Tooling.Connector.DeviceIdManager.LoadOrRegisterDevice(Uri issuerUri, String deviceName, String devicePassword)
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.GenerateDeviceCreds()
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)

Regards

Bab

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi BabuLD,

    Can you tried plugin registration tool from XRM tool box?

    Thanks

    Regards,

    AW

  • Community Member Profile Picture
    on at

    Hi AW

    I am getting the same error.

  • Suggested answer
    Kranthi Kiran Gullapalli Profile Picture
    105 on at

    It could be the version mismatch of Plugin Registration Tool, I had similar problem but fixed getting the lastest version of Plugin Registration tool from Nuget.

    For more details, check below blog post which i have written couple of weeks ago..

    http://d365learnings.blogspot.co.uk/2018/01/resolved-http-request-is-unauthorized-with-client-authentication-scheme-plugin-registration-tool.html

    hope this helps!!

  • Community Member Profile Picture
    on at

    Hi Kranthi

    I have installed this as per your instructions. How do I know use plugin registration after installing package?

    Thanks

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi BabuLD,

    with the last CRM version you cannot download Plugin Registration Tool from Microsoft download sites.

    You need to download it from NUget.

    Please refer to the following page to download it using PowerShell+NUget:

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

    Otherwise, you could try directly from visual studio add-in (never tried with Plugin Registration Tool to download through VS).

    Please let me know.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • Community Member Profile Picture
    on at

    Hi Francesco

    I have tried the link and followed the Powershell script.

    I have got this error in Powershell.

    powershell-error.PNG

    Thanks

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi BabuLD,

    Select Don't Know in the region option set, verify your user name, passwords and security role within your 365 crm.

    Thanks

    Regards,

    AW

  • Kishor Kumar Profile Picture
    3,710 on at

    Method #2: Using Windows Powershell:

    Reference: docs.microsoft.com/.../download-tools-nuget

    In your Windows Start menu, type Windows Powershell and open it.

    Navigate to the folder you want to install the tools to. For example if you want to install them in a devtools folder on your D drive, type cd D:\devtools.

    Copy and paste the following PowerShell script into the PowerShell window and press Enter

    $sourceNugetExe = "dist.nuget.org/.../nuget.exe"
    
    $targetNugetExe = ".\nuget.exe"
    
    Remove-Item .\Tools -Force -Recurse -ErrorAction Ignore
    
    Invoke-WebRequest $sourceNugetExe -OutFile $targetNugetExe
    
    Set-Alias nuget $targetNugetExe -Scope Global -Verbose
    
    ##
    
    ##Download Plugin Registration Tool
    
    ##
    
    ./nuget install Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool -O .\Tools
    
    md .\Tools\PluginRegistration
    
    $prtFolder = Get-ChildItem ./Tools | Where-Object {$_.Name -match 'Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool.'}
    
    move .\Tools\$prtFolder\tools\*.* .\Tools\PluginRegistration
    
    Remove-Item .\Tools\$prtFolder -Force -Recurse
    

    Navigate to the download location and you should be able to find the tool.

  • Community Member Profile Picture
    on at

    Hi Abdul

    Still same error exists after selecting 'Dont Know' for the region.

    Thanks

  • Community Member Profile Picture
    on at

    Hi Kishor

    I have tried to run the script in powershell from the reference link you sent and get this error.

    powershell-error2.PNG

    Thanks

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