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

Recommended Answers

All 2 Replies

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

Two questions:

  • What is in your list of project references?
  • What code is in the constructor Form1() ?
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.