Hello,
I am trying to run an ActiveX barcode and am getting an error when i try running the application on another machine. Below is the error i get. Any help would be great appreciated!
These are the imports i am using:
Imports System.Data.SqlClient
Imports Microsoft.VisualBasic.File
IO
Imports System.Runtime.InteropServ
ices
Below is the error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidOperationExc
eption: An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) ---> System.Runtime.InteropServ
ices.COMEx
ception (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
at System.Windows.Forms.Unsaf
eNativeMet
hods.CoCre
ateInstanc
e(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHos
t.CreateWi
thoutLicen
se(Guid clsid)
at System.Windows.Forms.AxHos
t.CreateWi
thLicense(
String license, Guid clsid)
at System.Windows.Forms.AxHos
t.CreateIn
stanceCore
(Guid clsid)
at System.Windows.Forms.AxHos
t.CreateIn
stance()
at System.Windows.Forms.AxHos
t.GetOcxCr
eate()
at System.Windows.Forms.AxHos
t.Transiti
onUpTo(Int
32 state)
at System.Windows.Forms.AxHos
t.CreateHa
ndle()
at System.Windows.Forms.Contr
ol.CreateC
ontrol(Boo
lean fIgnoreVisible)
at System.Windows.Forms.Contr
ol.CreateC
ontrol(Boo
lean fIgnoreVisible)
at System.Windows.Forms.AxHos
t.EndInit(
)
at BureauManager2.frmCreateBo
xHeaders.I
nitializeC
omponent()
in C:\Documents and Settings\ross\My Documents\Visual Studio 2008\Projects\BureauManage
r2\BureauM
anager2\fr
mCreateBox
Headers.De
signer.vb:
line 155
at BureauManager2.frmCreateBo
xHeaders..
ctor()
--- End of inner exception stack trace ---
at BureauManager2.My.MyProjec
t.MyForms.
Create__In
stance__[T
](T Instance) in 17d14f5c-a337-4978-8281-53
493378c107
1.vb:line 190
at BureauManager2.frmMain.But
ton1_Click
(Object sender, EventArgs e) in C:\Documents and Settings\ross\My Documents\Visual Studio 2008\Projects\BureauManage
r2\BureauM
anager2\fr
mMain.vb:l
ine 536
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)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microso
ft.NET/Fra
mework/v2.
0.50727/ms
corlib.dll
--------------------------
----------
----
BureauManager2
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and
%20Setting
s/itadmin/
Desktop/Ne
w%20Folder
%20(2)/Bur
eauManager
2.exe
--------------------------
----------
----
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
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.42 (RTM.050727-4200)
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.42 (RTM.050727-4200)
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.42 (RTM.050727-4200)
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.42 (RTM.050727-4200)
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
--------------------------
----------
----
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembl
y/GAC_MSIL
/System.Co
nfiguratio
n/2.0.0.0_
_b03f5f7f1
1d50a3a/Sy
stem.Confi
guration.d
ll
--------------------------
----------
----
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembl
y/GAC_MSIL
/System.Xm
l/2.0.0.0_
_b77a5c561
934e089/Sy
stem.Xml.d
ll
--------------------------
----------
----
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembl
y/GAC_32/S
ystem.Data
/2.0.0.0__
b77a5c5619
34e089/Sys
tem.Data.d
ll
--------------------------
----------
----
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
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.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembl
y/GAC_32/S
ystem.Ente
rpriseServ
ices/2.0.0
.0__b03f5f
7f11d50a3a
/System.En
terpriseSe
rvices.dll
--------------------------
----------
----
AxInterop.TBARCODE5Lib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and
%20Setting
s/itadmin/
Desktop/Ne
w%20Folder
%20(2)/AxI
nterop.TBA
RCODE5Lib.
DLL
--------------------------
----------
----
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Start Free Trial