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] Configure and run 'Pipelines in Power Platform'](https://rajeevpentyala.com/wp-content/uploads/2024/08/image.png)
![[Beginners] Power Fx: ShowColumns, AddColumns, RenameColumns and DropColumns](https://rajeevpentyala.com/wp-content/uploads/2024/04/record-ezgif.com-video-to-gif-converter-1-2.gif)
Leave a comment