473,320 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to register .NET Dlls

Hi,
I'm trying to register my Dlls in the client machine without using any
deployment package. I tried copying all the files and Dlls to a specified
folder and run, but then the application crashes.
Do I have to use some tool like “regsvr32.exe” or “gacutil.exe” to
registry the Dlls in the client machine?

Thank you,
Roby Eisenbraun Martins
Dec 2 '05 #1
7 6445
Yes, you can register them in the GAC. In order to do that you'll need to
have sign your assemblies (dlls), using key generated by sn.exe tool.
Then in the client machine you perfrm gacutil -i your.dll. Your assembly is
in the GAC, and anyone have access it using type name.

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Roby Eisenbraun Martins" <Ro*******************@discussions.microsoft.com >
wrote in message news:74**********************************@microsof t.com...
Hi,
I'm trying to register my Dlls in the client machine without using
any
deployment package. I tried copying all the files and Dlls to a specified
folder and run, but then the application crashes.
Do I have to use some tool like "regsvr32.exe" or "gacutil.exe" to
registry the Dlls in the client machine?

Thank you,
Roby Eisenbraun Martins

Dec 2 '05 #2
What do you mean by "register"? If you mean you've got some .NET COM
assemblies you'll have to run regasm or the equivalent on the target system.
Also, putting assemblies in the GAC is a deployment choice that you perhaps
don't need if your app is just an exe with some class libraries - that
wouldn't need the GAC unless you're sharing some assemblies with other apps
on the system.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"Roby Eisenbraun Martins" <Ro*******************@discussions.microsoft.com >
wrote in message news:74**********************************@microsof t.com...
Hi,
I'm trying to register my Dlls in the client machine without using
any
deployment package. I tried copying all the files and Dlls to a specified
folder and run, but then the application crashes.
Do I have to use some tool like “regsvr32.exe” or
“gacutil.exe” to
registry the Dlls in the client machine?

Thank you,
Roby Eisenbraun Martins

Dec 2 '05 #3
I can generate a key file using sn.exe, but when I try to execute gacutul
I receive an error message asking for the "strong name". How can i tie the
dlls with the strong "name"?

"Vadym Stetsyak" wrote:
Yes, you can register them in the GAC. In order to do that you'll need to
have sign your assemblies (dlls), using key generated by sn.exe tool.
Then in the client machine you perfrm gacutil -i your.dll. Your assembly is
in the GAC, and anyone have access it using type name.

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Roby Eisenbraun Martins" <Ro*******************@discussions.microsoft.com >
wrote in message news:74**********************************@microsof t.com...
Hi,
I'm trying to register my Dlls in the client machine without using
any
deployment package. I tried copying all the files and Dlls to a specified
folder and run, but then the application crashes.
Do I have to use some tool like "regsvr32.exe" or "gacutil.exe" to
registry the Dlls in the client machine?

Thank you,
Roby Eisenbraun Martins


Dec 5 '05 #4
In order to sign your assemly you can use assembly attributes, usually
defined in AssemblyInfo.cs.
The attributes will look like

[assembly: AssemblyKeyFile(@"C:\Snk\MyCustAssembly.snk")]
[assembly: AssemblyKeyName("MyCustAssembly")]

After build your assembly will be "signed" and can be placed in the GAC

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Roby Eisenbraun Martins" <Ro*******************@discussions.microsoft.com >
wrote in message news:7C**********************************@microsof t.com...
I can generate a key file using sn.exe, but when I try to execute
gacutul
I receive an error message asking for the "strong name". How can i tie the
dlls with the strong "name"?

"Vadym Stetsyak" wrote:
Yes, you can register them in the GAC. In order to do that you'll need to
have sign your assemblies (dlls), using key generated by sn.exe tool.
Then in the client machine you perfrm gacutil -i your.dll. Your assembly
is
in the GAC, and anyone have access it using type name.

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Roby Eisenbraun Martins"
<Ro*******************@discussions.microsoft.com >
wrote in message
news:74**********************************@microsof t.com...
> Hi,
> I'm trying to register my Dlls in the client machine without using
> any
> deployment package. I tried copying all the files and Dlls to a
> specified
> folder and run, but then the application crashes.
> Do I have to use some tool like "regsvr32.exe" or "gacutil.exe" to
> registry the Dlls in the client machine?
>
> Thank you,
> Roby Eisenbraun Martins


Dec 5 '05 #5
What is the exception raised ?

--
Patrice

"Roby Eisenbraun Martins" <Ro*******************@discussions.microsoft.com >
a crit dans le message de
news:74**********************************@microsof t.com...
Hi,
I'm trying to register my Dlls in the client machine without using any deployment package. I tried copying all the files and Dlls to a specified
folder and run, but then the application crashes.
Do I have to use some tool like "regsvr32.exe" or "gacutil.exe" to
registry the Dlls in the client machine?

Thank you,
Roby Eisenbraun Martins

Dec 5 '05 #6
OK, but I don't have the source code from all the dlls I am using. Some of
them are from another applications. I have only the DLL files.

"Vadym Stetsyak" wrote:
In order to sign your assemly you can use assembly attributes, usually
defined in AssemblyInfo.cs.
The attributes will look like

[assembly: AssemblyKeyFile(@"C:\Snk\MyCustAssembly.snk")]
[assembly: AssemblyKeyName("MyCustAssembly")]

After build your assembly will be "signed" and can be placed in the GAC

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Roby Eisenbraun Martins" <Ro*******************@discussions.microsoft.com >
wrote in message news:7C**********************************@microsof t.com...
I can generate a key file using sn.exe, but when I try to execute
gacutul
I receive an error message asking for the "strong name". How can i tie the
dlls with the strong "name"?

"Vadym Stetsyak" wrote:
Yes, you can register them in the GAC. In order to do that you'll need to
have sign your assemblies (dlls), using key generated by sn.exe tool.
Then in the client machine you perfrm gacutil -i your.dll. Your assembly
is
in the GAC, and anyone have access it using type name.

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Roby Eisenbraun Martins"
<Ro*******************@discussions.microsoft.com >
wrote in message
news:74**********************************@microsof t.com...
> Hi,
> I'm trying to register my Dlls in the client machine without using
> any
> deployment package. I tried copying all the files and Dlls to a
> specified
> folder and run, but then the application crashes.
> Do I have to use some tool like "regsvr32.exe" or "gacutil.exe" to
> registry the Dlls in the client machine?
>
> Thank you,
> Roby Eisenbraun Martins


Dec 5 '05 #7
An error in the first code line executed. What I think is not the code at
all. Is just a way to .NET says it can't read all the components requerid.

"Patrice" wrote:
What is the exception raised ?

--
Patrice

"Roby Eisenbraun Martins" <Ro*******************@discussions.microsoft.com >
a écrit dans le message de
news:74**********************************@microsof t.com...
Hi,
I'm trying to register my Dlls in the client machine without using

any
deployment package. I tried copying all the files and Dlls to a specified
folder and run, but then the application crashes.
Do I have to use some tool like "regsvr32.exe" or "gacutil.exe" to
registry the Dlls in the client machine?

Thank you,
Roby Eisenbraun Martins


Dec 5 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: MC | last post by:
Hi I have decided cause I am fed up of re-creating code that does the same thing over and over again for various websites, I thought i'd try to write a DLL and have done so in Visual Studio 2005...
5
by: Adam McKee | last post by:
We are using Visual Studio.NET 2003 in our project with .NET framework 1.1. One of our libraries is a mixed-mode dll assembly consisting of one managed C++ library, and several unmanaged C++...
1
by: Mack | last post by:
Howdy, I have recently converted my project from VC++6 to VS.Net 2003 VS7.1, and now, It won't register. when running regsvr32 I get: LoadLibrary failed - the specified module could not be...
3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
0
by: The Other Bill | last post by:
Hi -- I'm trying to deploy a VB.NET application that references COM dlls. When I add the dlls to my deployment project the Register property of these files defaults to COMSelfReg. Does this mean I...
2
by: Jan Eliasen | last post by:
Hi I have programmed an "Visual Basic Projects" => "Class Library" in VB.NET and it compiles just fine. When I try to run regsvr32 filename.dll I get an error; bizhdapppreprocessor.dll was...
4
by: Philip Wagenaar | last post by:
I am trying to create a vb6 activeX dll in .Net. I used the upgrade wizard in vs.net to load my vb6 project and it converted it to vb.net. Now I know that I have to register the DLL from COM...
3
by: Kondapanaidu | last post by:
Hi, I am using C#.NET1.1, How to register COM Dlls in C#.NET through coding. One way for this is P-Invoke but I am not sure whether its correct or not and also I am not sure how to use this...
1
by: Billingsley | last post by:
I have a folder in a website that contains a lot of VB6 DLLs that I want registered. What are some ways to go about this so I can CreateObjects from these DLLs? Registering them with regsvr32 is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.