Global Data Management Forum

Expand all | Collapse all

DB2 .Net Connector error : AESEncryptADONet

  • 1.  DB2 .Net Connector error : AESEncryptADONet

    Posted Thu November 12, 2020 12:17 PM
    We are trying to connect DB2 on from netcore 3.1 console app and running the code on Docker( Linux OS)
    We are receiving the following error
    There are no context policies. Function: AESEncryptADONET (Encryption Info)
    CallStack: at System.Environment.get_StackTrace()
    at IBM.Data.DB2.Core.DB2ConnPool.HandleUnknownErrors(String strFncMsg, Exception exception, Boolean bThrow)
    at IBM.Data.DB2.Core.DB2ConnPool.EncryptString(String value)
    at IBM.Data.DB2.Core.DB2ConnPool.ReplaceConnectionStringParms(DB2Connection connection, String szValue, DB2ConnSettings& pSettings, DB2ConnSettingsInternal& pSettingsInternal, Boolean bAttach, Boolean pushDownStrAppended)
    at IBM.Data.DB2.Core.DB2Connection.set_ConnectionString(String value)
    at IBM.Data.DB2.Core.DB2Connection..ctor(String connectionString)
    Does anyone have any idea where we're going wrong, or alternatively have a coherent end-to-end guide on the setup that may give me a clue.

    We have set the LD_LIBRARY_PATH path to clidriver/lib

    Does anyone have any idea about this issue ?


    ------------------------------
    Gargi Biswas
    ------------------------------

    #DataManagementGlobal
    #DataServerDrivers


  • 2.  RE: DB2 .Net Connector error : AESEncryptADONet

    Posted Wed November 18, 2020 11:47 AM
    There are all sorts of answers online on this topic, but nothing really fantastic for a full guide. For us, the problem ended up being Visual Studio 2013 Redistributable missing, but given you're in a Linux environment that may not help you.

    Do you have a valid license file? Are you able to run it locally?

    ------------------------------
    Kiran Ramaswamy
    ------------------------------