473,327 Members | 1,979 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,327 software developers and data experts.

Interop.VBA Problem with Collections from C# app

I have a VB 6 dll with the following method signature:

Public Sub ParseImageTags(ByRef InputLinksField As String _
, ByRef KeyWordCollection As Collection)

From a Visual Studio 2003 ASP.Net C# project I added a reference to
this DLL.

I have this line of code in the C# app where I'm creating a Collection
to pass by reference to the ParseImageTags method:

VBA.Collection c = new VBA.Collection();

When I run the app I get the following error on the above line of
code:

COM object with CLSID {A4C4671C-499F-101B-BB78-00AA00383CBB} is either
not valid or not registered.

I have a reference to Interop.VBA.

Any ideas what might be causing this error?

Thanks in advance for any help with this!
Nov 16 '05 #1
1 3656
What class id is it. It may be class id of supporting class, but not
registered on machine

--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Jim Dandy" <ji******@shaw.ca> wrote in message
news:70**************************@posting.google.c om...
I have a VB 6 dll with the following method signature:

Public Sub ParseImageTags(ByRef InputLinksField As String _
, ByRef KeyWordCollection As Collection)

From a Visual Studio 2003 ASP.Net C# project I added a reference to
this DLL.

I have this line of code in the C# app where I'm creating a Collection
to pass by reference to the ParseImageTags method:

VBA.Collection c = new VBA.Collection();

When I run the app I get the following error on the above line of
code:

COM object with CLSID {A4C4671C-499F-101B-BB78-00AA00383CBB} is either
not valid or not registered.

I have a reference to Interop.VBA.

Any ideas what might be causing this error?

Thanks in advance for any help with this!

Nov 16 '05 #2

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

Similar topics

0
by: Steven Kilby | last post by:
I have a component (inproc dll) written in VB6. I have a client written in C#. If I compile the component to native code everything works fine. I add the necessary type library for my component...
26
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...
6
by: Scott M. Lyon | last post by:
As I mentioned in my other post, I'm attempting to, using COM Interop so I can update existing VB6 code to (for several specific functions) return a Hashtable from a .NET library. I've had...
16
by: Asaf | last post by:
I am trying to create and use a COM object with C#.NET 2005. The assembly is set to "Register for COM interop" but when I am trying to call it from VB on Word 2003 I am getting this error: ...
6
by: Nataraj1978 | last post by:
I have a requirement to use a dll written in Visual C++ 6.0 in my C# application. In order to establish the link between my application and the dll, I have written a ATL COM Component in Visual...
0
by: Pucca | last post by:
Hi, I got the following code in a project for creating dll but I'm getting compiling error. I copied the code (from Main()) from Ineternet but becuase I don't know how COM interop and how to code...
1
by: Darwin | last post by:
I am trying to register a .Net class for COM interop in VS2005. When I went to add a class there was no "COM class" as a template, so I am trying to code it myself. But I keep getting "... does not...
3
by: =?Utf-8?B?VGVycnk=?= | last post by:
I have made up a contrived example show the problem I am having. I have some ReadOnly interfaces: Public Interface IROPerson ReadOnly Property FirstName() As String ReadOnly Property LastName()...
0
by: Michel Walsh | last post by:
I got the following error: ============= Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH)) ============= when using Interop.Excel.Run. The relevant code is from...
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: 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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.