-
0x80040154
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
System.Runtime.InteropServices.COMException was unhandled
ErrorCode=-2147221164
Message="Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
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 crm.Record.InitializeComponent() in E:\Martynas\crm\Record.Designer.vb:line 9123
at crm.Record..ctor() in E:\Martynas\crm\Record.vb:line 19
at crm.Mainform.Call_Record() in E:\Martynas\crm\Mainform.vb:line 105
at crm.Mainform.DataGridView_CellDoubleClick(Object sender, DataGridViewCellEventArgs e) in E:\Martynas\crm\Mainform.vb:line 131
at System.Windows.Forms.DataGridView.OnCellDoubleClick(DataGridViewCellEventArgs e)
at System.Windows.Forms.DataGridView.OnDoubleClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.DataGridView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoCompo nentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at crm.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
anyone has a clue how to solve this?
Other PCs runs it with no error, but mine brings the error.
-
Re: 0x80040154
When it says 'class not registered', what would you think that you might need to do?
-
Re: 0x80040154
It appears to be an issue with your DataGridView component. This is a guess, since I noticed DGV mentioned a few times in the error message.
We can't help you with just the error message. We need some background information on your program, like what it includes, and what it does.
-
Re: 0x80040154
Sounds like that computer's missing an assembly that the others have.
Need more information though. Post some lines of code, specifically the topmost lines referred to in the stack trace.
-
Re: 0x80040154
This application is quite big, it does all kind of SQL processes, it produces letters, barcharts provides notes and other. My computer is the only one that encounters that error, I even reinstalled Windows Vista.
I found some posts on other forums...
something is not registered or the register file .ocx, .dll corrupted in some way (even on a clean Windows version).
This error code means "class not registered". Your OCX is not registered on the device.
OCX can be registered using RegSvrCE tool available in WINCE distribution under $(WINCEROOT)\PUBLIC\DCOM\SDK\SAMPLES\REGSVR
I did register it but with no result.
I am not sure what code would you like me to post, because there are no problems with the code because it runs on other computers, it's more to do about the system register files.
one guy solved the error by editting a register file, but I have no clue how to do that
I did not try what this guy posted yet but I'll try, that's my last hope.
http://bytes.com/topic/net/answers/7..._e_classnotreg
thanks for your concern