System.Runtime.InteropServices.COMException (0x80040154): VB .Net error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sriregu
    New Member
    • Feb 2008
    • 2

    System.Runtime.InteropServices.COMException (0x80040154): VB .Net error

    Hi,
    i am trying the exe file in .net environment and am getting the following error.Any idea how i can resolve it?

    System.Runtime. InteropServices .COMException (0x80040154): Class not registered
    at System.Windows. Forms.AxHost.Cr eateInstance()
    at System.Windows. Forms.AxHost.Ge tOcxCreate()
    at System.Windows. Forms.AxHost.Tr ansitionUpTo(In t32 state)
    at System.Windows. Forms.AxHost.Cr eateHandle()
    at System.Windows. Forms.Control.C reateControl(Bo olean fIgnoreVisible)
    at System.Windows. Forms.Control.C reateControl(Bo olean fIgnoreVisible)
    at System.Windows. Forms.Control.C reateControl()
    at System.Windows. Forms.Control.W mShowWindow(Mes sage& m)
    at System.Windows. Forms.Control.W ndProc(Message& m)
    at System.Windows. Forms.Scrollabl eControl.WndPro c(Message& m)
    at System.Windows. Forms.Container Control.WndProc (Message& m)
    at System.Windows. Forms.Form.WmSh owWindow(Messag e& m)
    at System.Windows. Forms.Form.WndP roc(Message& m)
    at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
    at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
    at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    Is this some component which you copied and added a reference to in your project?

    You might need to register this with windows.

    Go to the directory where you have the DLL file (call it someCOMcomponen t.dll)
    c:\Windows\Syst em32\regsrv32 someCOMcomponen t.dll

    this will register the dll, and hopefully you should not get that error

    Comment

    • sriregu
      New Member
      • Feb 2008
      • 2

      #3
      I have no idea about this component.I did no copy or add it.Also i am not finding the path c:\Windows\Syst em32\regsrv32.I have WINXP so i tried c:\\WINXP. But i cannot find c:\\WINXP\Syste m32 .Any other suggestion on what the problem is?





      Originally posted by Shashi Sadasivan
      Is this some component which you copied and added a reference to in your project?

      You might need to register this with windows.

      Go to the directory where you have the DLL file (call it someCOMcomponen t.dll)
      c:\Windows\Syst em32\regsrv32 someCOMcomponen t.dll

      this will register the dll, and hopefully you should not get that error

      Comment

      Working...