Database Access error i when deployingVB6 system convereted to VB2
I have converted a substantial VB6 application (conversion took 3 months) to
VB2005 and it works beautifully EXCEPT on SOME PCs to which it is deployed
I deploy by XCOPY ( I cannot use one click) from an XP system to other XP
systems
On a PC on which dotnet is newly installed it fails the first time it tries
to create a database with the following message
(sorry it is so long but I include it all in case some detailed item is
relevant)
-----------------------------------------------
System.TypeInitializationException: The type initializer for
'ScoreBridgeR8.UpgradeSupport' threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040112): Creating an
instance of the COM component with CLSID
{00000010-0000-0010-8000-00AA006D2EA4} from the IClassFactory failed due to
the following error: 80040112.
at ScoreBridgeR8.UpgradeSupport..cctor()
--- End of inner exception stack trace ---
at ScoreBridgeR8.basRFCM.CreateBWSDatabase(String& strFileName)
at ScoreBridgeR8.FormBridgeMate.FormBridgeMate_Load(Object eventSender,
EventArgs eventArgs)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.Show()
at ScoreBridgeR8.FormMovement.SaveBridgeMateMovements()
at ScoreBridgeR8.FormMovement.C_OK_Click(Object eventSender, EventArgs
eventArgs)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ScoreBridgeR9
Assembly Version: 9.0.3.0
Win32 Version: 9.0.3.0
CodeBase: file:///C:/Program%20Files/ScoreBridge%209/ScoreBridgeR9.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
AxInterop.MSMAPI
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/ScoreBridge%209/AxInterop.MSMAPI.DLL
----------------------------------------
AxInterop.MSCommLib
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase:
file:///C:/Program%20Files/ScoreBridge%209/AxInterop.MSCommLib.DLL
----------------------------------------
Microsoft.VisualBasic.Compatibility
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic.Compatibility/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.Compatibility.dll
----------------------------------------
Interop.MSMAPI
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/ScoreBridge%209/Interop.MSMAPI.DLL
----------------------------------------
Interop.MSCommLib
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/ScoreBridge%209/Interop.MSCommLib.DLL
----------------------------------------
AxInterop.MSFlexGridLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:
file:///C:/Program%20Files/ScoreBridge%209/AxInterop.MSFlexGridLib.DLL
----------------------------------------
AxInterop.ComctlLib
Assembly Version: 1.3.0.0
Win32 Version: 1.3.0.0
CodeBase:
file:///C:/Program%20Files/ScoreBridge%209/AxInterop.ComctlLib.DLL
----------------------------------------
Interop.MSFlexGridLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:
file:///C:/Program%20Files/ScoreBridge%209/Interop.MSFlexGridLib.DLL
----------------------------------------
Interop.ComctlLib
Assembly Version: 1.3.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Program%20Files/ScoreBridge%209/Interop.ComctlLib.DLL
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
stdole
Assembly Version: 7.0.3300.0
Win32 Version: 7.00.9466
CodeBase:
file:///C:/WINDOWS/assembly/GAC/stdole/7.0.3300.0__b03f5f7f11d50a3a/stdole.dll
----------------------------------------
Interop.DAO
Assembly Version: 4.0.0.0
Win32 Version: 4.0.0.0
CodeBase: file:///C:/Program%20Files/ScoreBridge%209/Interop.DAO.DLL
----------------------------------------
I have also deployed adodb.dll into both the applications directory and into
C:\Program Files\Microsoft.NET\Primary Interop Assemblies\
(trying with its reference being both local and not)
The odd thing is that when deployed to other PCs (which I believe HAVE
implemented some other dotnet applications) my application works fine !
I guess I have got something wrong in either deployment or the registry but
I am a loss to know what
Having spent several days tring to resolve this, I would be most grateful
for any help
--
Stephen Bligh
Date:Tue, 7 Aug 2007 07:34:05 -0700
Author:
|