Posts Tagged ‘deviceregistration’

System.InvalidOperationException while running Device Registration tool – CRM 2011 online


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”