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.
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException
Exception Info: System.TypeInitializationException
at Sybase.PowerBuilder.Win.PBSession.CreateSession(System.Type, System.String)
#IF DEFINED PBDOTNET THEN
obj_encrypt = CREATE Cryptography.Symmetric.AesEncryption();
ls_prodpwd = obj_encrypt.DecryptFromString(ls_Pcipher_string);
catch (System.Exception ex)
ls_error = ex.Message
MessageBox(“LogPass Exception Error”, ls_error)
catch (System.Exception ex2)
ls_error = ex2.Message
MessageBox(“Exception”,”Exception during Decrypting Password using
Cryptography.dll : ” + ls_error)