Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Query in register .Net dll

Reply
 
Old 09-10-2009   #1 (permalink)
Latha


 
 

Query in register .Net dll

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




My System SpecsSystem Spec
Old 09-10-2009   #2 (permalink)
Family Tree Mike


 
 

RE: Query in register .Net dll



"Latha" wrote:
Quote:

> 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
My System SpecsSystem Spec
Old 09-10-2009   #3 (permalink)
Latha


 
 

Re: Query in register .Net dll

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



"Family Tree Mike" <FamilyTreeMike@xxxxxx> wrote in
message news:46CC3709-E42B-42A2-ADCD-E1997C64B519@xxxxxx
Quote:

>
>
> "Latha" wrote:
>
Quote:

>> 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

My System SpecsSystem Spec
Old 09-10-2009   #4 (permalink)
Jesse Houwing


 
 

Re: Query in register .Net dll

* Latha wrote, On 10-9-2009 16:10:
Quote:

> 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/forumarch...st25816365.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

Quote:

> Thanks& Regards,
> Latha.P
>
>
>
> "Family Tree Mike"<FamilyTreeMike@xxxxxx> wrote in
> message news:46CC3709-E42B-42A2-ADCD-E1997C64B519@xxxxxx
Quote:

>>
>>
>> "Latha" wrote:
>>
Quote:

>>> 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
>
>

--
Jesse Houwing
jesse.houwing at sogeti.nl
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Cannot register a dll Virtual Server
Register key for SLI Vista Games
do I have to re-register If---- Vista General
.ocx how to register? Vista installation & setup
where do i register Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46