on 05-01-2017 3:17 PM
Hello,
We have a PB12.5 .NET target which is calling a .NET DLL COM object. It works great and we have had no issues with the same.
However, from time to time we get the below error caught in our Event logs of the server where run this app.
Error:
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException
at Sybase.PowerBuilder.Win.PBSession..cctor()
Exception Info: System.TypeInitializationException
at Sybase.PowerBuilder.Win.PBSession.CreateSession(System.Type, System.String)
at PBApplicationEntryPoint.Main()
PB Code:
#IF DEFINED PBDOTNET THEN
Try
Cryptography.Symmetric.AesEncryption obj_encrypt;
obj_encrypt = CREATE Cryptography.Symmetric.AesEncryption();
try
ls_prodpwd = obj_encrypt.DecryptFromString(ls_Pcipher_string);
catch (System.Exception ex)
ls_error = ex.Message
MessageBox(“LogPass Exception Error”, ls_error)
end try
catch (System.Exception ex2)
ls_error = ex2.Message
MessageBox(“Exception”,”Exception during Decrypting Password using
Cryptography.dll : ” + ls_error)
end try
#END IF
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.