Registering for COM Interop

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • PGP

    #1

    Registering for COM Interop

    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


  • Marc Gravell

    #2
    Re: Registering for COM Interop

    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(fal se)]

    Marc

    Comment

    • PGP

      #3
      Re: Registering for COM Interop


      "Marc Gravell" <marc.gravell@g mail.comwrote in message
      news:e6aeb029-25cc-4e1a-b012-62940abb9e27@z1 7g2000hsg.googl egroups.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(fal se)]
      >
      Marc
      Marc,

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

      Regards
      Priyesh


      Comment

      Working...