Skip to Content
avatar image
Former Member

.NET RunTime Error

  • 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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers