Hi,

When I was trying to generate Device “ID” and “Password” using the command “deviceregistration.exe /operation:Register”, I got below error

Unhandled Exception: System.InvalidOperationException: There is an error in XML

document (5, 5). —> System.Security.Cryptography.CryptographicException: The parameter is incorrect

Reason :-

  • When you run the “deviceresistration.exe”, it creates new “LiveDevice.xml” file under “C:\Users\user_name\LiveDeviceID\” folder
  • Error occurs when the tool try to parse the generated “LiveDevice.xml” and show the Id & Password on console

Fix :-

  • Delete “LiveDevice.xml” file from ”C:\Users\user_name\LiveDeviceID” folder
  • Run the command “deviceregistration.exe /operation:Register”

🙂

Advertisements
Advertisements

2 responses to “System.InvalidOperationException while running Device Registration tool – CRM 2011 online”

  1. Ezorif Avatar

    Hai This is Ezorif,

    I can’t Find the Live Device ID, Please let me know where it locates.

    1. Rajeev Pentyala Avatar

      Hi,

      To get the device ID, you have to register first using “DeviceRegistration.exe” tool that comes with SDK.

      1) Go to “..\sdk\tools\deviceregistration” folder and compile the ‘deviceregistration’ project
      2) Open Visual Studio command prompt
      3) Point to the “..\sdk\tools\deviceregistration\bin\Debug” folder and run below command
      sdk\tools\deviceregistration\bin\Debug>DeviceRegistration.exe /operation:Register
      4) It gives you “Device ID” and “Device Password”
      5) Also it creates a new ‘LiveDevice.xml’ under ‘C:\Users\UserID\LiveDeviceID’

Leave a comment