Unhandled Exception: System.Security.Cryptography.CryptographicException: The parameter is incorrect
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
19-03-21 02:25 AM
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
------------------------------
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
19-03-21 05:37 AM
What was the command that you were trying to run?
------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------
------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
19-03-21 05:59 AM
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:
😧
cd F:\bprelease
rar e -o+ ReleasePackages\ReleasePackages releasepackages
-rlspkg "1.bprelease"
------------------------------
wingkit hui
------------------------------
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:
😧
cd F:\bprelease
rar e -o+ ReleasePackages\ReleasePackages releasepackages
-rlspkg "1.bprelease"
------------------------------
wingkit hui
------------------------------
