.NET Runtime Error

Home Forums Discussion Board .NET Runtime Error

This topic contains 0 replies, has 1 voice, and was last updated by  pbgeeks 6 months, 2 weeks ago.

  • Author
    Posts
  • #134

    pbgeeks
    Keymaster

    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

You must be logged in to reply to this topic.