mservidio
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
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
they have different names and versions and still it won't let u reference both?
ASKER
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.