Results 1 to 6 of 6

Thread: [RESOLVED] COMException (0x80040154)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2008
    Posts
    778

    Resolved [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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2008
    Posts
    778

    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

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2008
    Posts
    778

    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?

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2008
    Posts
    778

    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
  •  



Click Here to Expand Forum to Full Width