Re: .Net Interop With COM and ActiveX error

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Phil Wilson (Phil.Wilson_at_unisys.spamcom)
Date: 10/13/04


Date: Wed, 13 Oct 2004 13:34:10 -0700

The VB6 DLL is still a legacy COM server that needs registering on the
client system. .NET COM Interop still means that the original COM DLL needs
registering with regsvr32 or equivalent.

-- 
Phil Wilson [MVP Windows Installer]
----
"JC" <JC@discussions.microsoft.com> wrote in message
news:82DF2A5A-98D0-4EFB-8A75-37DB1A3CE821@microsoft.com...
> On my development PC, which is the machine that i 'build' my .net project,
I
> have successfully exposed my .net dll to my vb6 application.
>
> I have then used regasm to register my .net dll on another PC (#2) that
has
> the .net framework and the VB6 project(regasm myProject.dll /tlb:
> myProject.tlb).  I am able to reference the .tlb in my vb6 application.
I'm
> able to see it's methods and write my code.  But when I run the vb6 app on
> this #2 PC, I get "ActiveX component cannot create object" error when i
try
> to invoke any of the methods of my .dll.
>
> I've run the the Tutorial offered by Gene Trussell "Step-by-Step:
Implement
> Interoperability for a .NET DLL" and confirmed my .net dll is setup
correctly
> and I'm registering it correctly.
>
> I'm just spinning my wheels and I bet there's a simple
> answer.!!??
>
> Thanks for any and all help.
> JC
>
>


Relevant Pages

  • Re: vb6 nt service dot net interop error 429
    ... use COM Interop to create your VB6/COM object that contains all of your ... Server.exe references a vb.net dll via com ... I currently have a vb6 application running as an NT service. ... The method I am using to run the vb6 app as a service is through ...
    (microsoft.public.dotnet.framework.interop)
  • Re: C# DLL is throwing Automation Errors on some machines when cal
    ... This applies for the COM+ and COM Interop examples. ... example DLL and called it from the Excel VBA application as I had ... new VB6 application. ... come COM Interop from VBA works on a the majority of machines (such as ...
    (microsoft.public.dotnet.framework.interop)
  • Re: C# DLL is throwing Automation Errors on some machines when called from VB6
    ... This applies for the COM+ and COM Interop examples. ... example DLL and called it from the Excel VBA application as I had ... new VB6 application. ... come COM Interop from VBA works on a the majority of machines (such as ...
    (microsoft.public.dotnet.framework.interop)
  • Re: VB6 executable accessing a .Net DLL with ComClass
    ... regsvr32 in that it records the exact location of the dll. ... dll for App A but you have then also effected App B). ... The VB6 dev environment wants a type-library, ... registering the class that I am using. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Word Cannot Find Its Data Source ~~~.olk
    ... > I'd like some confirmation about registering this DLL. ... DLL, just in case, but regsvr32 came up with a "missing entry point" error. ... as I would like to have an address book connection method that can be ... initiated from Word and "does everything", the "initiation from Outlook" ...
    (microsoft.public.word.mailmerge.fields)