473,324 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

53
Hi,

I developed a windows application in Vb.Net 2003.It is working fine in this.
But when I am trying to convert this into .Net 2005 I am getting this error.

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))


at System.Windows.Forms.UnsafeNativeMethods.CoCreateI nstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithoutLicense(G uid clsid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Gui d clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.set_Site(ISite value)
at System.ComponentModel.Container.Add(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.Add(ICom ponent component, String name)
at System.ComponentModel.Design.DesignerHost.System.C omponentModel.Design.IDesignerHost.CreateComponent (Type componentType, String name)
at System.ComponentModel.Design.Serialization.Designe rSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.Designe rSerializationManager.System.ComponentModel.Design .Serialization.IDesignerSerializationManager.Creat eInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeInstance(IDesignerSerial izationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.Compone ntCodeDomSerializer.DeserializeInstance(IDesignerS erializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeExpression(IDesignerSeri alizationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDom Serializer.DeserializeStatementToInstance(IDesigne rSerializationManager manager, CodeStatement statement)
at System.ComponentModel.Design.Serialization.CodeDom Serializer.Deserialize(IDesignerSerializationManag er manager, Object codeObject)
at System.Windows.Forms.Design.ControlCodeDomSerializ er.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.ComponentModel.Design.Serialization.TypeCod eDomSerializer.DeserializeName(IDesignerSerializat ionManager manager, String name, CodeStatementCollection statements)

I am seeing a lot of people reporting this error, on other forums, but no one has an answer
Please anyone help me how to resolve this problem.

Regards
Pavani.
Jun 7 '08 #1
2 48862
dip_developer
648 Expert 512MB
try to repair your OWC ["Microsoft Office 2003 Web Components"] in your machine...
...........
Office Web Components are a collection of Component Object Model (COM) controls for publishing spreadsheets, charts, and databases to the Web............reinstall it....you can download it from here.......

[color=#800080]http://www.microsoft.com/downloads/details.aspx?FamilyID=7287252c-402e-4f72-97a5-e0fd290d4b76&DisplayLang=en[/color].

let us know whether it solves your problem....
Jun 9 '08 #2
i am having same problem but not with office component

error --------------------------------------------------------------------------
Retrieving the COM class factory for component with CLSID {E82A4C8E-7CBA-11D3-8D90-005004561FA5} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {E82A4C8E-7CBA-11D3-8D90-005004561FA5} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[COMException (0x80040154): Retrieving the COM class factory for component with CLSID {E82A4C8E-7CBA-11D3-8D90-005004561FA5} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).]
changeTable..ctor() +349
ASP.changetable_aspx..ctor() +50
__ASP.FastObjectFactory_app_web_tmf0e5go.Create_AS P_changetable_aspx() +72
System.Web.Compilation.BuildManager.CreateInstance FromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +360
System.Web.UI.PageHandlerFactory.GetHandlerHelper( HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +47
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +616
System.Web.MapHandlerExecutionStep.System.Web.Http Application.IExecutionStep.Execute() +159
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +347

-------------------------------------------------------------------------------------



this error comes when i am using my edp-api.dll file(installed when installing a softwrae which uses it. its a text based api. i am using it effectively on any 32 bit windows OS (means xp/2000/2003server/2008 server/windows 7) but getting above error at 64 bit system

i am trying with MS VS 2005 then i try MS VS 2008 all with same error

now i rectify this error when using this api with below configuration-
using windows xp 64 bit and MS VS 2010 but my web apge give error above and exe not(as i am using this edp - api on both exe applciation and on web applciation
Oct 14 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: BizWorld | last post by:
I am using a com component in my web application. when i call a method of com component. it gives the following error only ComException HRESULT: 0xC0000005 If i run this com component in VB 6...
3
by: Lekyan | last post by:
I have problem setting the password for an ADAM user using C#. I used the SetPassword code given in the Microsoft page, changed several parameters, but ran into an exception. I wonder if other...
0
by: Marco Herrn | last post by:
Hi, I am developing an ASP.NET application with C#. The application itself uses the Active Directory. That all worked fine, but since some days I always get the error...
2
by: sgr | last post by:
Hello I'm making an application that uses an excel worksheet, My problem appears when I open the worksheet to see the data (then I close it and save the changes) and I try to insert a new row from...
1
by: bashanmu | last post by:
i am experiencing the class cast exception for the following code Long index = new Long(-1); . . . . index=(Long)record.getAttribute(some constant name); Explanation: i have a text field...
2
by: meru | last post by:
The following is a piece of code to calla stored procedure in oracle from java ArrayList arrList = new ArrayList(); arrList.add(new Integer("10")); arrList.add(new Integer("7")); ...
1
by: =?Utf-8?B?U3VzYW4=?= | last post by:
I am upgrading an application from 32 bit to 64 bit. My application contains the Windows Media Player. Though it used to work, my code now generates a "Class not registered (Exception from HRESULT:...
3
by: rahul9885 | last post by:
what is class cast exception? why it comes. I am getting this exception when i am running my application. class files are getting compiled sucessfully. Please help.
4
by: shanu | last post by:
Hi, In my custom classloader i read the bytes using fileinputstream and constructed a class object using define class method. then I have used newInstance method on that loaded class object....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.