'DB2 Exception - There are no context policies

I am trying to connect to a Windows based DB2 server using the 11.5 ADO.NET connector. This works fine (it's some unit tests) on all systems except my home computer.

On my home computer I get the following exception:

{"ERROR [58005] [IBM][DB2.NET] SQL0902 An unexpected exception has occurred in  Process: 69336 Thread 11 AppDomain: Name:Tests: TestKailua
There are no context policies.
Function: AESEncryptADONET (Encryption Info)
allStack:    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at IBM.Data.DB2.DB2ConnPool.HandleUnknownErrors(String strFncMsg, Exception exception, Boolean bThrow)\r\n   at IBM.Data.DB2.DB2ConnPool.EncryptString(String value)
at IBM.Data.DB2.DB2ConnPool.ReplaceConnectionStringParms(DB2Connection connection, String szValue, DB2ConnSettings& pSettings, DB2ConnSettingsInternal& pSettingsInternal, Boolean bAttach, Boolean pushDownStrAppended)
at IBM.Data.DB2.DB2Connection.set_ConnectionString(String value)

And the inner exception is:

AESEncryptADONET - Encryption - no error information available
at IBM.Data.DB2.DB2ConnPool.EncryptString(String value)

What do I not have configured?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source