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”
🙂
![[Step by Step] Beginner : Create a PCF control and add it to a custom page](https://rajeevpentyala.com/wp-content/uploads/2024/12/image-49.png)
![[Step by Step] Configure and run 'Pipelines in Power Platform'](https://rajeevpentyala.com/wp-content/uploads/2024/08/image.png)

Leave a comment