By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,389 Members | 2,065 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,389 IT Pros & Developers. It's quick & easy.

Registering for COM Interop

P: n/a
PGP
I have an assembly i need to register for COM interop. This assembly has
other assembly dependencies that need not be visible to COM. Although, when
i turn on "Register for COM Interop" in the project setting for the target
assembly and compile, it gives me an error "COM Interop registration failed.
Could not find a type library for assembly <dependent assembly>"

Is there a way to not have the dependent assembly registered for COM
interop?

TIA
Priyesh
Jan 18 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Are you using any Types from the dependent registry in the public
interface of the assembly you want to register? Try marking those
members (or whole classes) with [ComVisibile(false)]

Marc
Jan 18 '08 #2

P: n/a
PGP

"Marc Gravell" <ma**********@gmail.comwrote in message
news:e6**********************************@z17g2000 hsg.googlegroups.com...
Are you using any Types from the dependent registry in the public
interface of the assembly you want to register? Try marking those
members (or whole classes) with [ComVisibile(false)]

Marc
Marc,

I tested your suggestion with one of the dependencies and it works
correctly. Thanks for the information.

Regards
Priyesh
Jan 18 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.