Solved

Exceptional Error

Posted on 2012-04-05
3
705 Views
Last Modified: 2012-11-01
System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details.  The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) ---> System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))


Can you help me to rectify this connection
0
Comment
Question by:mahmood66
3 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 37811633
can u give some background of what the exception is about?
obviously .net, but what version? what are you trying to accomplish?
maybe some code snippet?
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 300 total points
ID: 37814346
First of all, this is not an Exceptional error, all errors are called Exceptions in .NET :-)

You have a form that is trying to use a COM dll or ocx file. COM files are the one that were used before .NET. Unfortunately, this type of error has a very limited error message and you will have to find out by yourself which dll or ocx is faulty.

It can be that the dll or ocx file is not installed on the users computer. For instance, if you created an application that calls Microsoft Excel and the user does not have Microsoft Excel, you might get that type of error.

Or the dll is installed but not registered. These old dll need to be registered in the Windows registry before you can call them. This can happen if you provided the dll with the application. Usually , the application installer is supposed to be flagged to do so automatically, but you might not have set the flag when you prepared your setup program.
0
 

Author Closing Comment

by:mahmood66
ID: 37820738
guided us to solve the issue.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now