cancel
Showing results for 
Search instead for 
Did you mean: 

Unhandled Exception: System.Security.Cryptography.CryptographicException: The parameter is incorrect

wingkithui1
Level 2
Dear all,

While I am trying to use cmd from another vm to import a .bprelease, I encounter this problem as belows:

Unhandled Exception: System.Security.Cryptography.CryptographicException: The parameter is incorrect.

at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
at System.Security.Cryptography.RSACryptoServiceProvider.DecryptKey(SafeKeyHandle pKeyContext, Byte[] pbEncryptedKey, Int32 cbEn\
cryptedKey, Boolean fOAEP, ObjectHandleOnStack ohRetDecryptedKey)
at System.Security.Cryptography.RSACryptoServiceProvider.Decrypt(Byte[] rgb, Boolean fOAEP)
at BPRelease.Program.Decrypt(String ciphertext)
at BPRelease.Program.RlsPkg(String configFile, String[] args)
at BPRelease.Program.Main(String[] args)

However it works successfully when I login to the app server and run this command

any suggestions?

------------------------------
wingkit hui
------------------------------
2 REPLIES 2

What was the command that you were trying to run?

------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

there is two command, for my understanding, 
BPRelease.exe will check the username and password in the .xml, and use decripted password to connect to the db, I believe the password is wrong and led to this error occured.

However, it works fine while I click the batch file directly.

cmd below:
D:
cd F:\bprelease

rar e -o+ ReleasePackages\ReleasePackages releasepackages

-rlspkg "1.bprelease"

------------------------------
wingkit hui
------------------------------