Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. VB6 to .Net Interop issue

VB6 to .Net Interop issue

Scheduled Pinned Locked Moved COM
comhelpcsharpwcf
1 Posts 1 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sampath Sridhar
    wrote on last edited by
    #1

    I am writing a middleware library in .Net which will be invoking Web services and respond back to VB6 legacy applications with the service output. So far I have made the assembly as ComVisible without generating strong-name for it. The .Net dll will be used to generate a type library (.tlb) which can be added in Project References of the VB6 application and used to invoke the services. Using regasm tool, the TLB file is generated fine and registered to the local registry. I first registered the TLB from local system drive and everything worked fine. Now the system constraint is that, the assembly and type library cannot be stored in end-user machines. So I need to map to a network drive and register the TLB from there. The regasm tool registers it from network drive also, but the VB6 application is not able to access the classes in .Net

    Command used: WINDIR%\Microsoft.Net\Framework\v2.0.50727\regasm <dllname> /tlb /codebase <network folder path>

    Whenever i try to create new object, it is throwing error '430-Automation error. Class does not support the expected interface'. So I want to know how to resolve this issue?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups