C# interop with visual basic 6

  • Thread starter Thread starter Dan H.
  • Start date Start date
D

Dan H.

Hello,
I used regasm.exe on a .net assembly (MyAssembly1). This .net assembly
references other .net assemblies.
When I use the .net assembly within a Visual Basic 6 application, I receive
the following error:

"File or assembly name MyAssembly1, or one of its dependencies, was not
found"

The dependencies of the .net assembly are in the same folder. Do I need to
put these dependencies in a special spot so that MyAssembly1 knows where to
find them?

Thanks,
Dan
 
Dan,

Where's the .NET assembly located relative to the VB6 app? For the
assembly to be found, it should be in the application directory or in
the GAC.



Mattias
 
The Visual Basic app is a office addin from a template Microsoft provided.
It is a .dll file located within "Programs Files".

The .net assembly and its dependencies are in the same folder. All my files
are actually in the same folder.

"File or assembly name MyAssembly1, or one of its dependencies, was not
found".

Any ideas?

Thanks for your reply,
Dan
 
The Visual Basic app is a office addin from a template Microsoft provided.
It is a .dll file located within "Programs Files".

The .net assembly and its dependencies are in the same folder. All my files
are actually in the same folder.

"File or assembly name MyAssembly1, or one of its dependencies, was not
found".

Any ideas?

Thanks for your reply,
Dan
Try using regasm /codebase on the .net assembly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top