Toad World® Forums

DB2 Error


#1

I’m getting an error thrown after installing v8 of DB2 Connect. Would someone know what the cause might be or how to correct it?

System.TypeInitializationException
The type initializer for ‘Quest.Toad.DB2.DB2ConnectionControl’ threw an exception.
Stack Trace:
at Quest.Toad.DB2.DB2ConnectionControl…ctor()
at Quest.Toad.DB2.DB2Provider.CreateConnectionPanel(IProvider subProvider)
at Quest.Toad.ConnectionManager.ConnectionPropertiesControl.CreateContainer(ConnectMediator connectOptions)
at Quest.Toad.ConnectionManager.ConnectionPropertiesControl.ShowContainer(ConnectMediator connectMediator)
at Quest.Toad.ConnectionManager.ConnectionPropertiesControl.AssignConnectOptions(Node node, ConnectionFormStyle style)
at Quest.Toad.ConnectionManager.ConnectionForm.RefreshUI()
at Quest.Toad.ConnectionManager.ConnectionForm.connectionControl1_FocusChange(Object sender, ConnectionControlSelectionArgs e)
at Quest.Toad.ConnectionManager.ConnectionControl.RaiseFocusChanged(Node node)
at Quest.Toad.ConnectionManager.ConnectionControl.connectionList_FocusedNodeChanged(Object sender, FocusedNodeChangedEventArgs e)
at DevExpress.XtraTreeList.TreeList.RaiseFocusedNodeChanged(TreeListNode oldNode, TreeListNode newNode)
at DevExpress.XtraTreeList.TreeList.InternalSetFocusedRowIndex(Int32 newFocusedRowIndex)
at DevExpress.XtraTreeList.TreeList.set_FocusedRowIndex(Int32 value)
at DevExpress.XtraTreeList.Handler.TreeListHandler.NodePressedState.ChangeSelection(RowInfo pressRowInfo)
at DevExpress.XtraTreeList.Handler.TreeListHandler.NodePressedState.Init()
at DevExpress.XtraTreeList.Handler.TreeListHandler.SetControlState(TreeListState state)
at DevExpress.XtraTreeList.Handler.TreeListHandler.NormalState.OnPressNode()
at DevExpress.XtraTreeList.Handler.TreeListHandler.NormalState.MouseDown(MouseEventArgs e, TreeListHitTest ht)
at DevExpress.XtraTreeList.Handler.TreeListHandler.OnMouseDown(MouseEventArgs e)
at DevExpress.XtraTreeList.TreeList.OnMouseDown(MouseEventArgs e)
at Quest.Toad.TreeList.ToadTreeList.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m)
at DevExpress.XtraTreeList.TreeList.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

System.FormatException
Input string was not in a correct format.
Stack Trace:
at System.Version.VersionResult.SetFailure(ParseFailureKind failure, String argument)
at System.Version.TryParseComponent(String component, String componentName, VersionResult& result, Int32& parsedComponent)
at System.Version.TryParseVersion(String version, VersionResult& result)
at System.Version.Parse(String input)
at System.Version…ctor(String version)
at Quest.Toad.DB2.ProviderCommon.DB2Utils.getVersion(UIntPtr versionKey)
at Quest.Toad.DB2.ProviderCommon.DB2Utils.SearchForDefaultDB2Client(Boolean redirect64)
at Quest.Toad.DB2.ProviderCommon.DB2Utils.GetDefaultDB2Client()
at Quest.Toad.DB2.DB2Provider.Initialize()
at Quest.Toad.DB2.DB2ConnectionControl…cctor()


#2

To itlnstln:

Thank you for posting in Toad World!

This error stack trace has allowed me to look a little more closely at what Toad is doing. However, we’ll need some additional items to better understand what happened.

  1. The version of Toad Beta you are using.

  2. Explicit steps to reproduce this issue.

3.A text file of the exported registry path for: “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\IBM\DB2\CurrentVersion”

How to Export Registry Path in Windows 7

  1. Open regedit.exe
    OpenRegedit.png

  2. Drill down the registry path “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\IBM\DB2\CurrentVersion”
    drilldown.png

  3. Right-Click on the Key Folder “CurrentVersion” -> Export
    5023.Export.png

  4. Save it somewhere as a txt file

  5. Reply to this post and add the file as an attachment

We look forward to your response!

Software Developer I,
-Joshua Liong