Query in register .Net dll

L

Latha

Hi,
I need to register my VB.Net dll. To register dll, I did the following
steps
1. Project --> Properties -->Application --> Assembly Information --> check
the " Make assembly COM-Visible " check box.
2. Project --> Properties --> Signing --> Create a strong name Key file.
When I try to build the dll, It also asked me to create strong name key
file for all other dlls referenced by this dll. As I am using third party
dll, I am not able to create strong name key file for this referenced dll.
Is it necessary to create strong name key? Orelse Is there anyother easiest
way to register vb.net dll?. Kindly do help me.

Thanks & Regards,
Latha.P
 
F

Family Tree Mike

Latha said:
Hi,
I need to register my VB.Net dll. To register dll, I did the following
steps
1. Project --> Properties -->Application --> Assembly Information --> check
the " Make assembly COM-Visible " check box.
2. Project --> Properties --> Signing --> Create a strong name Key file.
When I try to build the dll, It also asked me to create strong name key
file for all other dlls referenced by this dll. As I am using third party
dll, I am not able to create strong name key file for this referenced dll.
Is it necessary to create strong name key? Orelse Is there anyother easiest
way to register vb.net dll?. Kindly do help me.

Thanks & Regards,
Latha.P

No, you do not need to create a strong named assembly to register the dll
for COM. When you build your dll, it will be registered for COM on your
computer simply by checking the box "Make Assembly COM Visible". On any
other computer, you register the dll for COM by running "regasm somefile.dll".

Mike
 
L

Latha

Thanks for your information.

Actually what my requirement is I need to register dll in widows registry to
access the VB.Net dll from Jave script.
The steps I have mentioned in previous mail (without strong name the dll) is
enough to do this? If so, am I able to find the dll in "Registry Editor"
under the folder "HKEY_CLASSES_ROOT\.dll?

Thanks & Regards,
Latha.P
 
J

Jesse Houwing

* Latha wrote, On 10-9-2009 16:10:
Thanks for your information.

Actually what my requirement is I need to register dll in widows registry to
access the VB.Net dll from Jave script.
The steps I have mentioned in previous mail (without strong name the dll) is
enough to do this? If so, am I able to find the dll in "Registry Editor"
under the folder "HKEY_CLASSES_ROOT\.dll?
It will work, but has serious drawbacks. If you give the assembly a
strong name it can be added to the Global Assembly Cache, which in turn
ensures that COM will be able to find it regardless of it's actual
location. (You'd need to deploy the assembly either to a folder in the
search path, to the application folder or to a wellknown location such
as %systemroot%.

A pretty technical discussion can be found here:
http://www.eggheadcafe.com/forumarchives/NETFrameworkinterop/Feb2006/post25816365.asp

The best solution would be to ask the party that provided the other
assemblies to sign them and provide you with a new copy.

Kind Regards,

Jesse Houwing
 

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

Top