Groups | Blog | Home
all groups > dotnet interop > february 2004 >

dotnet interop : Tool : REGASM


Mattias Sjögren
2/26/2004 2:11:43 PM

[quoted text, click to view]

To ensure that the VB6 client can find your assembly, you should put
it in the application directory (which is the VB6 directory while
you're debugging), the GAC or register the assembly with Regasm's
/codebase option (which is effectively what VS.NET is doing).



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Chew
2/26/2004 4:48:08 PM
Hi,

Did anyone use the tool, REGASM to register your .Net class library as a COM
component? I've tried it and found that it didn't registered my class
library properly. I kept getting the error "File or Assembly name
MyClassLibrary, or one of its dependencies, was not found" when I tried to
use the .Net class library from VB6. However, if I registered it from inside
the VS.NET IDE, it works fine. Care to enlighten?


Thanks,
chew

Chew
2/26/2004 11:12:41 PM
Thanks. I'll try it out and let you know.

[quoted text, click to view]

Chew
2/27/2004 10:04:43 AM
Thanks. I got it working by signing the assembly with strong name and
registering it with the codebase option.

[quoted text, click to view]

AddThis Social Bookmark Button