COM DLL from .Net

I am about to write a .Net application (C#, VS2012, Framework 4.0) where I want to use a COM DLL.  I am familiar with Interop only in the sense of adding references to things like Excel.

In order to reference it in my project, does the COM DLL need to be registered on my development machine?  Currently I get an error when trying to reference it (could not be added, make sure it's a valid COM assembly, etc.)

When I deliver the finished application to a client site, does the COM DLL need to be registered on the client machine, or is that what Interop is for -- to avoid that?

Thank you.
LVL 4
g_johnsonAsked:
Who is Participating?
 
käµfm³d 👽Connect With a Mentor Commented:
Have you tried registering the DLL?

...is that what Interop is for...?
"Interop" is for allowing your managed code to work with unmanaged code.
0
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
>>When I deliver the finished application to a client site, does the COM DLL need to be registered on the client machine

Yes because a COM DLL can only be referenced through the registry.
0
 
g_johnsonAuthor Commented:
Thanks, guys
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.