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 7 6462
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************ *******@discuss ions.microsoft. com>
wrote in message news:74******** *************** ***********@mic rosoft.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.e xe" or "gacutil.ex e" to registry the Dlls in the client machine?
Thank you, Roby Eisenbraun Martins
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************ *******@discuss ions.microsoft. com>
wrote in message news:74******** *************** ***********@mic rosoft.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
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************ *******@discuss ions.microsoft. com> wrote in message news:74******** *************** ***********@mic rosoft.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.e xe" or "gacutil.ex e" to registry the Dlls in the client machine?
Thank you, Roby Eisenbraun Martins
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\MyCus tAssembly.snk")]
[assembly: AssemblyKeyName ("MyCustAssembl y")]
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************ *******@discuss ions.microsoft. com>
wrote in message news:7C******** *************** ***********@mic rosoft.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************ *******@discuss ions.microsoft. com> wrote in message news:74******** *************** ***********@mic rosoft.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.e xe" or "gacutil.ex e" to > registry the Dlls in the client machine? > > Thank you, > Roby Eisenbraun Martins
What is the exception raised ?
--
Patrice
"Roby Eisenbraun Martins" <Ro************ *******@discuss ions.microsoft. com>
a crit dans le message de
news:74******** *************** ***********@mic rosoft.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.e xe" or "gacutil.ex e" to registry the Dlls in the client machine?
Thank you, Roby Eisenbraun Martins
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\MyCus tAssembly.snk")] [assembly: AssemblyKeyName ("MyCustAssembl y")]
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************ *******@discuss ions.microsoft. com> wrote in message news:7C******** *************** ***********@mic rosoft.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************ *******@discuss ions.microsoft. com> wrote in message news:74******** *************** ***********@mic rosoft.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.e xe" or "gacutil.ex e" to > registry the Dlls in the client machine? > > Thank you, > Roby Eisenbraun Martins
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************ *******@discuss ions.microsoft. com> a écrit dans le message de news:74******** *************** ***********@mic rosoft.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.e xe" or "gacutil.ex e" to registry the Dlls in the client machine?
Thank you, Roby Eisenbraun Martins This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 and tested it very well in VB.NET
exe debug test program and everything worked.
However, I want to register the DLL to use in my ASP and have done so using
trying, regsvr32.
|
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++ libraries. We are
using managed C++ as a bridge between managed .NET code and unmanaged
C++ code, which I'm sure is a fairly common practice. The managed C++
library is compiled with /CLR whereas all other libraries are compiled
without /CLR because...
|
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 found
and when running directly from the IDE I get:
Project : error PRJ0019: A tool returned an error code from
|
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 from
'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\root\1f575646\ad3a161b\assembly\dl2\57ca505e\044565c0_f84fc401\Test1.DLL'
The problem is that the control is defined in two different assemblies
|
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 have to register the dlls
myself somehow? Or can I change the value to COM so that the installer
registers it for me? Not sure what the difference is between these two
values and the help on this topic is not very helpful.
Clueless,
Bill
| |
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 loaded, but the DllRegisterServer entry
point was not found.
|
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 interop. I can check the box in vs.net on
the compiler tab to do this.
But how do I register my DLL for COM interop on another machine?
|
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 one.
Any body have idea please give the Inputs.
|
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 a pain.
TIA.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |