Results 1 to 8 of 8

Thread: system.runtime.interopservices.comexception (0x80040154) class not registered

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2011
    Location
    Minneapolis
    Posts
    39

    system.runtime.interopservices.comexception (0x80040154) class not registered

    Hi:

    I am getting this error: system.runtime.interopservices.comexception (0x80040154) class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

    I am doing a deployment in Visual Basic 2010 using Windows 8.1 OS. Everything is set to 32-bit (even though I am running 64-bit OS) I have also tried any CPU with the same results.

    I am supposed to register a COM Component. Which one, I have no idea.

    Below is a more complete representation of the problem.

    HTML Code:
    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
       at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
       at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
       at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
       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 enginerev3.form1.InitializeComponent()
       at enginerev3.form1..ctor()
       at enginerev3.Splash.Timer1_Tick(Object sender, EventArgs e)
       at System.Windows.Forms.Timer.OnTick(EventArgs e)
       at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.34003 built by: FX45W81RTMGDR
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    enginerev3
        Assembly Version: 1.0.5084.37230
        Win32 Version: 1.0.5084.37230
        CodeBase: file:///C:/Program%20Files%20(x86)/Phillips%20%26%20Temro%20Industries,%20Inc/enginerev4_Setup/enginerev3.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.34003 built by: FX45W81RTMGDR
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    Microsoft.VisualBasic
        Assembly Version: 10.0.0.0
        Win32 Version: 12.0.20806.33440 built by: FX45W81RTMREL
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System.Core
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    AxInterop.MSChart20Lib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Phillips%20%26%20Temro%20Industries,%20Inc/enginerev4_Setup/AxInterop.MSChart20Lib.DLL
    ----------------------------------------
    Interop.MSChart20Lib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/Phillips%20%26%20Temro%20Industries,%20Inc/enginerev4_Setup/Interop.MSChart20Lib.DLL
    ----------------------------------------
    System.Data
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    MSDATASRC
        Assembly Version: 7.0.3300.0
        Win32 Version: 7.00.9466
        CodeBase: file:///C:/WINDOWS/assembly/GAC/MSDATASRC/7.0.3300.0__b03f5f7f11d50a3a/MSDATASRC.dll
    ----------------------------------------
    System.Numerics
        Assembly Version: 4.0.0.0
        Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.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.
    Any help is greatly appreciated.

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

    Re: system.runtime.interopservices.comexception (0x80040154) class not registered

    You appear to be using an old MSChart ActiveX control. You should be using the charting component built into the .NET Framework.

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2011
    Location
    Minneapolis
    Posts
    39

    Re: system.runtime.interopservices.comexception (0x80040154) class not registered

    Short term, is there a way to register this control until I can reprogram that part? Is that regasm or reg32? Thank you!

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

    Re: system.runtime.interopservices.comexception (0x80040154) class not registered

    RegAsm is for .NET libraries. RegSvr32 is for COM libraries. You'll need to actually copy the ActiveX control to that machine and register it.

  5. #5

    Thread Starter
    Member
    Join Date
    Nov 2011
    Location
    Minneapolis
    Posts
    39

    Re: system.runtime.interopservices.comexception (0x80040154) class not registered

    Thank you for your reply. Things seem to be going better. My only other issue is that at run time on the compiled installed version, I am getting some errors on dependent files being read-only. Can this be resolved? They do not need to be read only.

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: system.runtime.interopservices.comexception (0x80040154) class not registered

    Quote Originally Posted by sanderson View Post
    Thank you for your reply. Things seem to be going better. My only other issue is that at run time on the compiled installed version, I am getting some errors on dependent files being read-only. Can this be resolved? They do not need to be read only.
    Please provide specific details.

  7. #7

    Thread Starter
    Member
    Join Date
    Nov 2011
    Location
    Minneapolis
    Posts
    39

    Re: system.runtime.interopservices.comexception (0x80040154) class not registered

    Quote Originally Posted by jmcilhinney View Post
    Please provide specific details.
    First: The file exists and is not open
    The Microsoft Jet engine cannot open the file 'c:\path\filename.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

    Second: Unhandled exception error
    Access to path 'c:\path\file' is denied.

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: system.runtime.interopservices.comexception (0x80040154) class not registered

    Quote Originally Posted by sanderson View Post
    First: The file exists and is not open
    The Microsoft Jet engine cannot open the file 'c:\path\filename.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

    Second: Unhandled exception error
    Access to path 'c:\path\file' is denied.
    Nothing to do with the original topic of this thread. New topic = new thread.

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