Link to home
Start Free TrialLog in
Avatar of mservidio
mservidioFlag for United States of America

asked on

C# Referencing two different COM objects with the same namespace.

Hi All -

I have 2 COM objects that I need to reference within my C# application.

COM Object 1: TestA Version 1
COM Object 2: TestA Version 2

I am having an issue referencing both versions, as VS won't let me import the second reference. It says: " A reference to 'TestA Version 2' could not be added. A reference to this type library already exists. You must remove the reference 'TestA' before adding this one.

Any ideas on how I can import both, and use both side by side?

Thanks,
Mark
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

they have different names and versions and still it won't let u reference both?
Avatar of mservidio

ASKER

See screenshots...
untitled.JPG
untitled2.JPG
To answer your question, yes they have different "Component Names". However, the namespaces within both COM files are the same. I think this is where the issue is coming from.
ASKER CERTIFIED SOLUTION
Avatar of mservidio
mservidio
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial