[RESOLVED] [2005] Wierd Problem.
I Run My Application and it gives me this error message. I thought it was the problem of the application's unmanaged code but when i run the same application but an older build, it gives me the same error.
I cant tell what could be the problem.
It highlights my "InitializeComponent()" in the sub New and throws this exception.
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
Re: [2005] Wierd Problem.
Are you using any ActiveX controls or COM components? Are you using any references outside the standard Framework?
Re: [2005] Wierd Problem.
I have now checked the Enable unmanaged code for debugging and it does the samething and throws this exception.
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Windows.Forms.dll
Additional information: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
Re: [2005] Wierd Problem.
Yes JMC i am using an activeX control.
Re: [2005] Wierd Problem.
Then it would appear that that ActiveX control is not registered on your system. I've never done it manually myself but I'm sure there are plenty of people around here who have. You could wait for one of them to tell you or you could look it up on MSDN.
Re: [2005] Wierd Problem.
Ok. Thanks. Let me see if i can register it.
Re: [2005] Wierd Problem.
Ok. I re-registered it and it fixed the problem.