I have a problem when I compile my windows form application in Visual C# Express Edition 2010.

When I press F5 do debug, I receive this message:

"Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
And points to this line:
Application.Run(new Form1());

I dont know what the problem could be?

Thank you

6 Years
Discussion Span
Last Post by gusano79

I run my application on my big computer and it works fine. Then I just copy the application to my laptop that also has Visual C# Express Edition 2010 installed
and I receive this error below.

As I can understand some component might need to be additionally installed or setting is wrong in order for this to work but I don´t know what it could be?
I have set x86 to target the correct CPU but this still does not work:

System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG

Edited by Jennifer84: n/a


Two questions:

  • What is in your list of project references?
  • What code is in the constructor Form1() ?
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.