Solved

Exceptional Error

Posted on 2012-04-05
3
706 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

864 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

23 Experts available now in Live!

Get 1:1 Help Now