SETP
asked on
Could not load file or assembly 'stdole'
I wrote a Visual Basic 2008 application targetting the .NET Framework 2.0. It runs fine on my development PC, but when I run it on a deployment machine, I get the following error:
Could not load file or assembly 'stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a' or one of its dependencies. The system cannot find the file specified.
The deployment PC has .NET Framework 3.5 installed.
The two differences I can see between the two PCs is that the development PC has Visual Basic 6.0, Visual Basic .NET 2003 and Visual Studio 2008, as well as Office 2007, while the deployment PC only has Office 2003. However, my application does not use Office in any way. Here is the stack trace:
************** Exception Text **************
System.IO.FileNotFoundExce ption: Could not load file or assembly 'stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a'
at RadioTracker.frmOptions.Ap plySetting s()
at RadioTracker.frmOptions.cm dOK_Click( Object eventSender, EventArgs eventArgs)
at System.Windows.Forms.Contr ol.OnClick (EventArgs e)
at System.Windows.Forms.Butto n.OnClick( EventArgs e)
at System.Windows.Forms.Butto n.OnMouseU p(MouseEve ntArgs mevent)
at System.Windows.Forms.Contr ol.WmMouse Up(Message & m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Contr ol.WndProc (Message& m)
at System.Windows.Forms.Butto nBase.WndP roc(Messag e& m)
at System.Windows.Forms.Butto n.WndProc( Message& m)
at System.Windows.Forms.Contr ol.Control NativeWind ow.OnMessa ge(Message & m)
at System.Windows.Forms.Contr ol.Control NativeWind ow.WndProc (Message& m)
at System.Windows.Forms.Nativ eWindow.Ca llback(Int Ptr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\F usion!Enab leLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\F usion!Enab leLog].
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///c:/WINDOWS/Microso ft.NET/Fra mework/v2. 0.50727/ms corlib.dll
-------------------------- ---------- ----
RadioTracker
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files /RadioTrac ker/RadioT racker.exe
-------------------------- ---------- ----
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_MSIL /Microsoft .VisualBas ic/8.0.0.0 __b03f5f7f 11d50a3a/M icrosoft.V isualBasic .dll
-------------------------- ---------- ----
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_MSIL /System/2. 0.0.0__b77 a5c561934e 089/System .dll
-------------------------- ---------- ----
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_MSIL /System.Wi ndows.Form s/2.0.0.0_ _b77a5c561 934e089/Sy stem.Windo ws.Forms.d ll
-------------------------- ---------- ----
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_MSIL /System.Dr awing/2.0. 0.0__b03f5 f7f11d50a3 a/System.D rawing.dll
-------------------------- ---------- ----
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_MSIL /System.Ru ntime.Remo ting/2.0.0 .0__b77a5c 561934e089 /System.Ru ntime.Remo ting.dll
-------------------------- ---------- ----
Interop.DXVUFFT
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files /RadioTrac ker/Intero p.DXVUFFT. DLL
-------------------------- ---------- ----
Interop.MapObjects2
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Program%20Files /RadioTrac ker/Intero p.MapObjec ts2.DLL
-------------------------- ---------- ----
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_MSIL /System.Xm l/2.0.0.0_ _b77a5c561 934e089/Sy stem.Xml.d ll
-------------------------- ---------- ----
Microsoft.VisualBasic.Powe rPacks
Assembly Version: 9.0.0.0
Win32 Version: 3.0.30214.0
CodeBase: file:///C:/Program%20Files /RadioTrac ker/Micros oft.Visual Basic.Powe rPacks.DLL
-------------------------- ---------- ----
DXVUMeterNET
Assembly Version: 3.0.5.1
Win32 Version: 3.0.6.0
CodeBase: file:///C:/Program%20Files /RadioTrac ker/DXVUMe terNET.DLL
-------------------------- ---------- ----
Microsoft.DirectX.DirectSo und
Assembly Version: 1.0.2902.0
Win32 Version: 5.04.00.2904
CodeBase: file:///C:/Program%20Files /RadioTrac ker/Micros oft.Direct X.DirectSo und.DLL
-------------------------- ---------- ----
AxInterop.MO21legend
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files /RadioTrac ker/AxInte rop.MO21le gend.DLL
-------------------------- ---------- ----
AxInterop.MO21ScaleBar
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Program%20Files /RadioTrac ker/AxInte rop.MO21Sc aleBar.DLL
-------------------------- ---------- ----
AxInterop.MapObjects2
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Program%20Files /RadioTrac ker/AxInte rop.MapObj ects2.DLL
-------------------------- ---------- ----
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_32/S ystem.Data /2.0.0.0__ b77a5c5619 34e089/Sys tem.Data.d ll
-------------------------- ---------- ----
MixerProNET
Assembly Version: 1.2.4.0
Win32 Version: 1.2.5
CodeBase: file:///C:/Program%20Files /RadioTrac ker/MixerP roNET.DLL
-------------------------- ---------- ----
nxze5nxb
Assembly Version: 0.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_MSIL /System/2. 0.0.0__b77 a5c561934e 089/System .dll
-------------------------- ---------- ----
Microsoft.DirectX.Direct3D
Assembly Version: 1.0.2902.0
Win32 Version: 9.05.132.0000
CodeBase: file:///C:/Program%20Files /RadioTrac ker/Micros oft.Direct X.Direct3D .DLL
-------------------------- ---------- ----
Interop.MO21legend
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files /RadioTrac ker/Intero p.MO21lege nd.DLL
-------------------------- ---------- ----
Interop.MO21ScaleBar
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Program%20Files /RadioTrac ker/Intero p.MO21Scal eBar.DLL
-------------------------- ---------- ----
Interop.VBRUN
Assembly Version: 6.0.0.0
Win32 Version: 6.0.0.0
CodeBase: file:///C:/Program%20Files /RadioTrac ker/Intero p.VBRUN.DL L
-------------------------- ---------- ----
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_MSIL /Accessibi lity/2.0.0 .0__b03f5f 7f11d50a3a /Accessibi lity.dll
-------------------------- ---------- ----
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_32/S ystem.Tran sactions/2 .0.0.0__b7 7a5c561934 e089/Syste m.Transact ions.dll
-------------------------- ---------- ----
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_32/S ystem.Ente rpriseServ ices/2.0.0 .0__b03f5f 7f11d50a3a /System.En terpriseSe rvices.dll
-------------------------- ---------- ----
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_MSIL /System.Co nfiguratio n/2.0.0.0_ _b03f5f7f1 1d50a3a/Sy stem.Confi guration.d ll
-------------------------- ---------- ----
Microsoft.DirectX
Assembly Version: 1.0.2902.0
Win32 Version: 5.04.00.2904
CodeBase: file:///C:/Program%20Files /RadioTrac ker/Micros oft.Direct X.DLL
-------------------------- ---------- ----
gm7sd8yq
Assembly Version: 0.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_MSIL /System/2. 0.0.0__b77 a5c561934e 089/System .dll
-------------------------- ---------- ----
c9f8kfq6
Assembly Version: 0.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl y/GAC_MSIL /System/2. 0.0.0__b77 a5c561934e 089/System .dll
-------------------------- ---------- ----
Could not load file or assembly 'stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d
The deployment PC has .NET Framework 3.5 installed.
The two differences I can see between the two PCs is that the development PC has Visual Basic 6.0, Visual Basic .NET 2003 and Visual Studio 2008, as well as Office 2007, while the deployment PC only has Office 2003. However, my application does not use Office in any way. Here is the stack trace:
************** Exception Text **************
System.IO.FileNotFoundExce
File name: 'stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d
at RadioTracker.frmOptions.Ap
at RadioTracker.frmOptions.cm
at System.Windows.Forms.Contr
at System.Windows.Forms.Butto
at System.Windows.Forms.Butto
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.Butto
at System.Windows.Forms.Butto
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.Nativ
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\F
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\F
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///c:/WINDOWS/Microso
--------------------------
RadioTracker
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files
--------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
Interop.DXVUFFT
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files
--------------------------
Interop.MapObjects2
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Program%20Files
--------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
Microsoft.VisualBasic.Powe
Assembly Version: 9.0.0.0
Win32 Version: 3.0.30214.0
CodeBase: file:///C:/Program%20Files
--------------------------
DXVUMeterNET
Assembly Version: 3.0.5.1
Win32 Version: 3.0.6.0
CodeBase: file:///C:/Program%20Files
--------------------------
Microsoft.DirectX.DirectSo
Assembly Version: 1.0.2902.0
Win32 Version: 5.04.00.2904
CodeBase: file:///C:/Program%20Files
--------------------------
AxInterop.MO21legend
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files
--------------------------
AxInterop.MO21ScaleBar
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Program%20Files
--------------------------
AxInterop.MapObjects2
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Program%20Files
--------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
MixerProNET
Assembly Version: 1.2.4.0
Win32 Version: 1.2.5
CodeBase: file:///C:/Program%20Files
--------------------------
nxze5nxb
Assembly Version: 0.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
Microsoft.DirectX.Direct3D
Assembly Version: 1.0.2902.0
Win32 Version: 9.05.132.0000
CodeBase: file:///C:/Program%20Files
--------------------------
Interop.MO21legend
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files
--------------------------
Interop.MO21ScaleBar
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Program%20Files
--------------------------
Interop.VBRUN
Assembly Version: 6.0.0.0
Win32 Version: 6.0.0.0
CodeBase: file:///C:/Program%20Files
--------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
Microsoft.DirectX
Assembly Version: 1.0.2902.0
Win32 Version: 5.04.00.2904
CodeBase: file:///C:/Program%20Files
--------------------------
gm7sd8yq
Assembly Version: 0.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
c9f8kfq6
Assembly Version: 0.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembl
--------------------------
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've noticed that the stdole.dll file referenced in my application is apparently in the following folder:
C:\WINDOWS\assembly\GAC\st dole\7.0.3 300.0__b03 f5f7f11d50 a3a\stdole .dll
However, that folder does not exist on my PC. Maybe that's why it wasn't included in the Setup package? I did, however, find the file in:
C:\Program Files\Microsoft.NET\Primar y Interop Assemblies
which appears to have done the trick. Should I simply manually add this file to the Setup package?
C:\WINDOWS\assembly\GAC\st
However, that folder does not exist on my PC. Maybe that's why it wasn't included in the Setup package? I did, however, find the file in:
C:\Program Files\Microsoft.NET\Primar
which appears to have done the trick. Should I simply manually add this file to the Setup package?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER