System.Runtime.InteropServices.COMException exception while running an application

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



System.Runtime.InteropServices.COMException exception while running an application



I was running a vb.net application and I got an exception like below. I think some com library named AxMSForms.dll is missing. From where would i get that? Any idea?



EXCEPTION Type = System.Runtime.InteropServices.COMException Message = Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Source = System.Windows.Forms
Stack Trace Follows
------------------- 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 MyApp.frmWireSpacingData.InitializeComponent() at MyApp.frmWireSpacingData..ctor(measurement theMeasurement, cableProduct theProduct, IGraphPaneManager theGraphPaneManager, String printerName, String theTitle) at MyApp.frmCableSpec.doMeasurement() at MyApp.frmCableSpec.cmdMeasure_Click(Object sender, EventArgs e)





It looks like you have an ActiveX control on your WinForm that is not registered on the machine you're running the app on.
– jmcilhinney
Aug 10 at 10:59





@jmcilhinney How to get that registered? I found that Activex component is Interop.MSForms (Microsoft Forms 2.0 Object Library). How could I register that? I have a dll of that library. Wil that help?
– Muhammed Thabjeel
Aug 10 at 11:12





Why are you using that in the first place? Do you need it? I'm not 100% sure what it is but I have a feeling it is something that was designed to help migrate applications from VB6 to VB.NET in stages. If that's the case then it's something that you should be trying to eliminate ASAP.
– jmcilhinney
Aug 10 at 11:48





I think that this is what I was thinking of but the description seems to suggest that it's for .NET in VB6 rather than the other way around. If this is what you're using then you may need to install it on the target machine.
– jmcilhinney
Aug 10 at 12:35





Possible duplicate of Can't find Microsoft Forms 2.0 Object Library or FM20.DLL
– Lex Li
Aug 10 at 12:52









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS