473,769 Members | 5,072 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Will interop solve this problem?`

I am getting the following errors.

Retrieving the COM class factory for component with CLSID
{0CD44B28-F861-11D0-9B45-006097B00E23} failed due to the following
error: 80040154."

The code that is generating the error is: act.CAIBaseView objBaseView =

new act.CAIBaseView ();

However the following code works fine: act.CActAppObj objACT = new
act.CActAppObj( );

I am referencing act.dll which gives me access to the act. namespace.

If I use p'invoke to reference the .dll instead will this help me?

I've been stuck on this for about 2 months.

Jan 19 '07 #1
3 1625
"Gary" <ga********@myw ay.comwrote in message
news:11******** **************@ l53g2000cwa.goo glegroups.com.. .
>I am getting the following errors.

Retrieving the COM class factory for component with CLSID
{0CD44B28-F861-11D0-9B45-006097B00E23} failed due to the following
error: 80040154."

The code that is generating the error is: act.CAIBaseView objBaseView =

new act.CAIBaseView ();

However the following code works fine: act.CActAppObj objACT = new
act.CActAppObj( );

I am referencing act.dll which gives me access to the act. namespace.

If I use p'invoke to reference the .dll instead will this help me?

I've been stuck on this for about 2 months.

Don't know about atc.dll, but if it's a COM server dll, it won help you to call it through
PInvoke.
What you should do is make sure the dll is correctly registered (regsvr32 act.dll) and that
the typelib is correctly imported in your project, that is, you need to make sure you have
generated a suitable interop assembly from this act.dll (or it's typelib).
Before using this in a project you need to consult the docs that comes with the server
(act.dll), and when you have problems like this you should run ildasm on the interop
assembly to see whether all methods are correctly imported and whether they have the
signature you are expecting.

Willy.
Jan 19 '07 #2
Thankyou this is the best advice i've had in months.
I've done what you've suggested already upto the ildasm advice.

I am going to try ildasm now (which i haven't used before) and see if i
can get any further.

if there is a problem highlighted by ildasm, how do i rectify it?

Thanks

Gary
Willy Denoyette [MVP] wrote:
"Gary" <ga********@myw ay.comwrote in message
news:11******** **************@ l53g2000cwa.goo glegroups.com.. .
I am getting the following errors.

Retrieving the COM class factory for component with CLSID
{0CD44B28-F861-11D0-9B45-006097B00E23} failed due to the following
error: 80040154."

The code that is generating the error is: act.CAIBaseView objBaseView =

new act.CAIBaseView ();

However the following code works fine: act.CActAppObj objACT = new
act.CActAppObj( );

I am referencing act.dll which gives me access to the act. namespace.

If I use p'invoke to reference the .dll instead will this help me?

I've been stuck on this for about 2 months.


Don't know about atc.dll, but if it's a COM server dll, it won help you to call it through
PInvoke.
What you should do is make sure the dll is correctly registered (regsvr32 act.dll) and that
the typelib is correctly imported in your project, that is, you need to make sure you have
generated a suitable interop assembly from this act.dll (or it's typelib).
Before using this in a project you need to consult the docs that comes with the server
(act.dll), and when you have problems like this you should run ildasm on the interop
assembly to see whether all methods are correctly imported and whether they have the
signature you are expecting.

Willy.
Jan 19 '07 #3
"Gary" <ga********@myw ay.comwrote in message
news:11******** **************@ a75g2000cwd.goo glegroups.com.. .
Thankyou this is the best advice i've had in months.
I've done what you've suggested already upto the ildasm advice.

I am going to try ildasm now (which i haven't used before) and see if i
can get any further.

if there is a problem highlighted by ildasm, how do i rectify it?
Ildasm will at least reveal the names of the COM interfaces and the "synthesize d" names of
their classes. Once you have found the offending class interface, you can check it's name
and compare its guid with the name used in your program and the clsid in the error message.
Note that a class creation can also fail because it's trying to create another (contained)
COM class which is not registered (or not available).

Willy.

Jan 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2069
by: joe | last post by:
I am trying to write an application in vb .net. I am using two COM objects, the WebBrowser Control and another object written by an associate. The second object has a method which takes a pointer to a WebBrowser object as a parameter. I don't know of a way to get a pointer to the actual WebBrowser control rather than the wrapper. This seems like it would be something that a lot of people would need to do, so please let me know if you...
1
8649
by: Craig | last post by:
I am having problems getting an ActiveX DLL written in VB6 to call a method in a C# class library component. My C# DLL is called CSharpProject.dll and contains a public class called CSharpClass. In this class is a single public method that returns the string "Hello from C sharp". My VB6 ActiveX DLL references the C# DLL (CSharpProject.dll) using the
0
2212
by: Allan Ebdrup | last post by:
Using a completely cleat dotNet application project in VS, I have a COM component that I want to add a reference to, when I add the reference I get the error: --- A reference to 'SACVBusinessObjects' could not be added. Converting the type library to a .Net assembly failed. A dependent type library 'ADODB' could not be converted to a .Net assembly. Item has already been added. Key in dictionary: "C:\...\obj\Interop.ADODB.dll" key being...
26
10677
by: Vish | last post by:
Hi, I am trying to expose my .NET 2.0 class as a COM type using the following attributes for the attributes I have the "Register for COM Interop" build property set to true. I also have two functions in the class to register and unregister the COM with the
17
1856
by: Aaron | last post by:
I've got a doozie of a problem! I and others have been trying to figure this out for too long and I've come to the conclusion that I should probably look for some support.. Ok, I have a COM component written in C++ (I don't have the source just the binary) and am referencing it from VB. I would say about 99% of the functionality exposed by this COM component works fine from vb .net but I am having a problem calling a method which has a...
2
3029
by: Christopher H. Laco | last post by:
Long story longer, I'm tearing my hair out trying to get some of my assemblies to work in ASP/COM. I have 4 classes/assemblies: #1. CustomerMembershipProvider (Inherits MembershipProvider) #2. CustomTcpClient (Inherits TcpClient) #3. ASPFormsAuthentication (does magic to read/write FormsAuthenticationTickets in ASP 3.0) #4. ASPMembership (does magic to use Membership API within ASP 3.0) Now, all of these assemblies are set to...
3
1472
by: Hospital S.Sebastiao | last post by:
Hi, i'm in desperate need of help to fix a problem that i have, the problem is the following: I have an ASP.NET aplication that to open an word template document, this aplication is in C#(using .NET 1.1 and VS2003), i have register the office interop DLL in the GAC an have also install the office program in the machine, this is in a virtual machine that i use to make the development, on the host machine i have the same interop DLL's and ...
2
7303
by: JC | last post by:
Anybody knows what problem has this code? I think, in the Garbage Collector? You know the Solution? The program in the test's case, whit 350 contacts, run OK before number 86. The error is a "Array index out of bounds". Microsoft.Office.Interop.Outlook._Application olApp = new Microsoft.Office.Interop.Outlook.ApplicationClass(); Microsoft.Office.Interop.Outlook._NameSpace olNs = olApp.GetNamespace("MAPI");
9
48017
by: sajithkahawatta | last post by:
my web page C#.net is work properly in my iis .but when i publish in another server it give errers.i used vs2005 and ms word 2003. but in the server there is no vs2005 or word installed. it has only .net frame work installed.folowing the error, Parser Error Message: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10214
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10048
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.