Skip to Content
0

.NET RunTime Error

May 01, 2017 at 02:17 PM

85

avatar image
  • 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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers