|
-
Apr 22nd, 2009, 07:16 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] COMException (0x80040154)
Hello, I am just trying to run an application on another mashine than I created it and I get this error - COMException (0x80040154)
I think it needs more files, but I copied the source, where could I find the other files necessary for it?
Anyone came across this error before please help
************** Exception Text **************
System.TypeInitializationExcep
tion: The type initializer for
"Poisson1.MainModule" threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040154): Class not
registered
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean
fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean
fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at Poisson1.MainForm.InitializeComponent()
at Poisson1.MainForm..ctor()
at Poisson1.MainModule..cctor()
--- End of inner exception stack trace ---
at Poisson1.MainModule.ReadGeneralParams()
at Poisson1.StartForm.MessageBox_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean
fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/
mscorlib.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/
1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.drawing/
1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.DirectoryServices
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/
system.directoryservices/1.0.5000.0__b03f5f7f11d50a3a/
system.directoryservices.dll
----------------------------------------
System.Messaging
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.messaging/
1.0.5000.0__b03f5f7f11d50a3a/system.messaging.dll
----------------------------------------
System.ServiceProcess
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.serviceprocess/
1.0.5000.0__b03f5f7f11d50a3a/system.serviceprocess.dll
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.data/
1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
DynamicPricing
Assembly Version: 1.0.2434.22535
Win32 Version: 1.0.2434.22535
CodeBase: file:///C:/DynamicPricing/DynamicPricing.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/
1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.xml/
1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
AxInterop.MSChart20Lib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/DynamicPricing/AxInterop.MSChart20Lib.DLL
----------------------------------------
AxInterop.MSComctlLib
Assembly Version: 10.0.4504.0
Win32 Version: 10.0.4504.0
CodeBase: file:///C:/DynamicPricing/AxInterop.MSComctlLib.DLL
----------------------------------------
MSDATASRC
Assembly Version: 7.0.3300.0
Win32 Version: 7.00.9466
CodeBase: file:///C:/DynamicPricing
----------------------------------------
Interop.MSChart20Lib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/DynamicPricing/Interop.MSChart20Lib.DLL
----------------------------------------
Accessibility
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/accessibility/
1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
-
Apr 22nd, 2009, 07:42 AM
#2
Re: COMException (0x80040154)
You're using an ActiveX control that you haven't registered on the machine running the application. It looks like you're using a COM version of a Microsoft chart component. There's no need for that as they have recently released a .NET chart component.
-
Apr 23rd, 2009, 03:27 AM
#3
Thread Starter
Fanatic Member
Re: COMException (0x80040154)
so how do I solve this problem, do I need install .NET chart to make it work on my computer?
thank you
-
Apr 23rd, 2009, 04:56 AM
#4
Re: COMException (0x80040154)
Either register the ActiveX control on the machines you want to run your app on, which you can do using a Windows Installer Setup project or manually, or else get rid of the ActiveX control and use the .NET chart control instead, which will require recoding the charting functionality.
-
Apr 24th, 2009, 02:05 AM
#5
Thread Starter
Fanatic Member
Re: COMException (0x80040154)
Any way to get the controls registered without the need to recode anything? Are there any help or samples how to do this on the net?
-
Apr 24th, 2009, 07:22 AM
#6
Thread Starter
Fanatic Member
Re: COMException (0x80040154)
Ok sorry, my software packages are different than it used. It runs well on the other machine with VB 2005...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|