Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Unable to login in Plugin Registration Tool

Posted on by 6,203

Hi All,

i am unable to login in plugin registration tool. I have trial account with India tenant. when i am trying to login it is giving below error.

i have tried changing online region to unknown and Asia, but still i am facing issue.

1007.Capture1.PNG

Source : Microsoft.Xrm.Tooling.Connector
Method : RegisterDevice
Date : 29-12-2017
Time : 18:25:02
Error : DeviceAlreadyExists: 0x80041132
Stack Trace : 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()
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.GenerateDeviceCreds()
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)
======================================================================================================================

thanks,

shahbaaz

*This post is locked for comments

  • Saddamk206 Profile Picture
    Saddamk206 777 on at
    RE: Unable to login in Plugin Registration Tool

    Deleting the contents of the folder:-   C:\Users\<username>\AppData\Roaming\Microsoft\PluginRegistration

    Now re-open tool and try to connect......!!!

  • Suggested answer
    ARIFNIIT Profile Picture
    ARIFNIIT 1,391 on at
    RE: Unable to login in Plugin Registration Tool

    May be a problem if you have multiple instances of the plugin registration open?

    close all instance and then try it.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to login in Plugin Registration Tool

    Thanks @Francesco Picchi, it works for me.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to login in Plugin Registration Tool

    Hi,

    We recently had the same issue and the fact was that our Dynamics was upgraded to 9.0 version, so we had to download the last version 9.0.0.7 of PluginRegistrationTool

    You can get it by downloading it through NuGet in Visual Studio instance. Just typing PluginRegistrationTool and search for the 9.0.0.7 version.  Or through power shell.

    Here you have the instructions:

    Method #1: Using Visual Studio (Package Manager Console):  
     1. Create a new Console application in Visual Studio
    2. Open Tools --> Nuget Package Manager Console 
    3. Copy and paste the command below from this article into the Package Manager Console:

    Install-Package Microsoft.CrmSdk.XrmTooling.PackageDeployment -Version 9.0.0.7

     4. Check the location where the package was installed:

    ·         You will be able to find Plugin Registration tool in the Package location of the solution folder. 
     
    Method #2: Using Windows Powershell:
     
    1. In your Windows Start menu, type Windows Powershell and open it.
    2. 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.
    3. Copy and paste the following PowerShell script into the PowerShell window and press Enter
    $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
    1. Navigate to the download location and you should be able to find the tool.

     

    Hope this will be helpfull.

    Regards,

    Mariem

    Method #1: Using Visual Studio (Package Manager Console):  
     
    1. Create a new Console application in Visual Studio
    2. Open Nuget Package Manager Console:

    cid:image001.png@01D3857C.2274DF80

     

    1. Copy and paste the command below from this article into the Package Manager Console:

    Install-Package Microsoft.CrmSdk.XrmTooling.PackageDeployment -Version 9.0.0.7

     

    cid:image002.png@01D3857C.2274DF80

     

     

    1. Check the location where the package was installed:

    cid:image003.png@01D3857C.2274DF80

     

    ·         You will be able to find Plugin Registration tool in this location:

    cid:image004.png@01D3857C.2274DF80

     

     
    Method #2: Using Windows Powershell:
     
    1. In your Windows Start menu, type Windows Powershell and open it.
    2. 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.
    3. Copy and paste the following PowerShell script into the PowerShell window and press Enter
    $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
    1. Navigate to the download location and you should be able to find the tool.
     
  • Suggested answer
    Preeti Sharma Profile Picture
    Preeti Sharma 2,678 on at
    RE: Unable to login in Plugin Registration Tool

    Hi Shahbaaz,

    Please check the option to show list of organisations and check if there are more than one CRM environments that can be accessed. Try to connect to org you want.

    Thanks.

    Hope this helps! :)

  • Suggested answer
    Syed Ibrahim Profile Picture
    Syed Ibrahim 6,257 on at
    RE: Unable to login in Plugin Registration Tool

    hi Sachin,

    Please try to Modify using TSL to 1.2 through Fiddler and connect.

    Pls follow solution point 4 in the below link.

    mscrm365.blogspot.sg/.../dynamics-crm-v9-connection-error-in.html

    Hope this helps. Pls mark it as Answered/Verified to close the thread if suggestion resolved your query

  • Suggested answer
    RE: Unable to login in Plugin Registration Tool

    I was also facing the same issue and after getting the latest version of PRT from Nuget (https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/download-tools-nuget) and deleting stored credentials from Control Panel -> Credential Manager -> Plugin Registration Default, I am able to connect to Plugin registration tool.  FYI:  my trial instance is hosted in North America region.

    Please mark this as an answer as verified, if it finds useful for you.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to login in Plugin Registration Tool

    Hi Nishkarsh ,

    this is a good news.

    Thanks Nishkarsh.

    Please, let us know Shahbaaz.

    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

  • Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Unable to login in Plugin Registration Tool

    thanks for letting us know Nishkarsh.

  • Verified answer
    Nishkarsh Vaish Profile Picture
    Nishkarsh Vaish 335 on at
    RE: Unable to login in Plugin Registration Tool

    Hi

    First download and install new PRT from below link.

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

    I have same error just before 3-4 days. I called Microsoft the issue is with SDK version.

    Regards

    Nishkarsh

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans