Topic
  • No replies
DavidThielen
DavidThielen
27 Posts

Pinned topic Exception setting connection string

‏2019-03-28T02:02:56Z |

When I set:

Connection.ConnectionString = "server=db2.windward.net;database=SAMPLE;Uid=demo;Pwd=*****;";

I get the following exception. What do I need to do to fix this? Note that this is setting the connection string. I haven't even opened a connection yet.

 

IBM.Data.DB2.DB2Exception
  HResult=0x80004005
  Message=[IBM][DB2.NET] SQL0902 An unexpected exception has occurred in  Process: 70800 Thread 11 AppDomain: Name:domain-
There are no context policies.
 Function: AESEncryptADONET (Encryption Info)
 CallStack:    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)
   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)
   at Kailua.net.windward.utils.ado.DbConnectionWrapper.set_ConnectionString(String value) in C:\git\Jenova\engine\DotNetEngine\Kailua\net\windward\utils\ado\DbConnectionWrapper.cs:line 163
   at net.windward.utils.ado.WrConnection..ctor(String connStrName) in C:\git\Jenova\engine\DotNetEngine\Kailua\net\windward\utils\ado\WrConnection.cs:line 78
   at net.windward.utils.ado.WrConnection.Factory(String connStrName) in C:\git\Jenova\engine\DotNetEngine\Kailua\net\windward\utils\ado\WrConnection.cs:line 40
   at net.windward.utils.ado.TestDB2Provider.TestSelect() in C:\git\Jenova\engine\DotNetEngine\TestKailua\net\windward\utils\ado\TestDB2Provider.cs:line 193
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at NUnit.Framework.Internal.Reflect.InvokeMethod(MethodInfo method, Object fixture, Object[] args) in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Reflect.cs:line 266
   at NUnit.Framework.Internal.MethodWrapper.Invoke(Object fixture, Object[] args) in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\MethodWrapper.cs:line 180
   at NUnit.Framework.Internal.Commands.TestMethodCommand.InvokeTestMethod(TestExecutionContext context) in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Commands\TestMethodCommand.cs:line 97
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context) in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Commands\TestMethodCommand.cs:line 93
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context) in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Commands\TestMethodCommand.cs:line 64
   at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0() in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Commands\BeforeAndAfterTestCommand.cs:line 58
   at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action) in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Commands\BeforeAndAfterTestCommand.cs:line 73
   at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.Execute(TestExecutionContext context) in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Commands\BeforeAndAfterTestCommand.cs:line 61
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork() in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Execution\SimpleWorkItem.cs:line 58
   at NUnit.Framework.Internal.Execution.WorkItem.RunOnCurrentThread() in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Execution\WorkItem.cs:line 509
   at NUnit.Framework.Internal.Execution.WorkItem.Execute() in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Execution\WorkItem.cs:line 261
   at NUnit.Framework.Internal.Execution.ParallelWorkItemDispatcher.Dispatch(WorkItem work, ParallelExecutionStrategy strategy) in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Execution\ParallelWorkItemDispatcher.cs:line 229
   at NUnit.Framework.Internal.Execution.ParallelWorkItemDispatcher.Dispatch(WorkItem work) in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Execution\ParallelWorkItemDispatcher.cs:line 217
   at NUnit.Framework.Internal.Execution.CompositeWorkItem.RunChildren() in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Execution\CompositeWorkItem.cs:line 296
   at NUnit.Framework.Internal.Execution.CompositeWorkItem.PerformWork() in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Execution\CompositeWorkItem.cs:line 149
   at NUnit.Framework.Internal.Execution.WorkItem.RunOnCurrentThread() in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Execution\WorkItem.cs:line 509
   at NUnit.Framework.Internal.Execution.WorkItem.Execute() in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Execution\WorkItem.cs:line 261
   at NUnit.Framework.Internal.Execution.TestWorker.TestWorkerThreadProc() in C:\src\nunit\nunit\src\NUnitFramework\framework\Internal\Execution\TestWorker.cs:line 141
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart() InnerException Message: AESEncryptADONET - Encryption - no error information available Check InnerException property for more detail.  SQLSTATE=58005
  Source=IBM.Data.DB2.11.1.0
  StackTrace:
   at IBM.Data.DB2.DB2ConnPool.HandleUnknownErrors(String strFncMsg, Exception exception, Boolean bThrow)
   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)
   at Kailua.net.windward.utils.ado.DbConnectionWrapper.set_ConnectionString(String value) in C:\git\Jenova\engine\DotNetEngine\Kailua\net\windward\utils\ado\DbConnectionWrapper.cs:line 163
   at net.windward.utils.ado.WrConnection..ctor(String connStrName) in C:\git\Jenova\engine\DotNetEngine\Kailua\net\windward\utils\ado\WrConnection.cs:line 78
   at net.windward.utils.ado.WrConnection.Factory(String connStrName) in C:\git\Jenova\engine\DotNetEngine\Kailua\net\windward\utils\ado\WrConnection.cs:line 40
   at net.windward.utils.ado.TestDB2Provider.TestSelect() in C:\git\Jenova\engine\DotNetEngine\TestKailua\net\windward\utils\ado\TestDB2Provider.cs:line 193

Inner Exception 1:
InvalidOperationException: AESEncryptADONET - Encryption - no error information available