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

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

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
  1. October 23, 2013 at 10:43 PM

    Hai This is Ezorif,

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

    • October 24, 2013 at 10:41 AM

      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’

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: