473,796 Members | 2,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Move assembly to GAC from C#

EAI
Is there a way to Install/UnInstall an assembly to GAC?

Thanks!
Nov 17 '05 #1
2 1855
EAI
Never mind

this works

System.Enterpri seServices.Inte rnal.Publish foo = new
System.Enterpri seServices.Inte rnal.Publish();
foo.GacInstall( "myassembly.dll ");

"EAI" <EA*@EAI.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Is there a way to Install/UnInstall an assembly to GAC?

Thanks!

Nov 17 '05 #2
Using the command line you can use

"gacutil -i <assemblyName>. dll" to install a dll into the GAC
"gacutil -u <assemblyName > to uninstall a dll from the GAC

The MSI installer (and most third party installers) also support
installing and uninstalling assembly to the GAC.

Bennie Haelen
EAI wrote:
Is there a way to Install/UnInstall an assembly to GAC?

Thanks!

Nov 17 '05 #3

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

Similar topics

0
1698
by: Ken Durden | last post by:
I'm working on a client-server application where the client is controlling two devices (aka servers) which both implement the same interface contract. We have a set of about 4 assemblies which specify the interfaces and the data types which flow through the interfaces. Initially, we thought this would be enough for the client to talk with the server. In general it is, but when an exception is generated by the server it fails to...
6
1738
by: MoriCristian | last post by:
Just a question. If i have an app with a dll version 1.5 and I replace it with version 1.6 everithing works fine. If i change the strong name however the app crash, but this is fine. My curiosity is then: the various System, System.data and so on are signed? If so, how can the mono project prot them without having the private key? this is just for curiosity, no real need, Thanks! Cristian Mori
2
2154
by: Paul Ingles | last post by:
Hi, I have an ASP.NET Web Application which uses a number of controls in an external strongly named assembly. Whenever I view a page that uses one of the controls within the strongly named assembly a FileLoadException is thrown, saying that "The located assembly's manifest definition with name 'CentaurNet.Web.Controls' does not match the assembly reference".
3
1728
by: Grant Merwitz | last post by:
Hi I am creating an assembly which needs to be accessibly from an ASP application. I have made this Assembly ComVisible(true), and after using regasm and copying this to windows\assembly file i can use this fine. now this is a rather repetitive and time wasting task (copy assembly across, deregister old one, register new one, replace assembly version and restart iis)
2
1156
by: alexander.glass | last post by:
I have a strange problem and I cant fix it because I don't understand how assembly dependencies work. I created a project "project 1" that used two assemblies: "assembly xyz" and "assembly 123". I create a new project and add "assembly xyz" from the "project 1" folder. Now I am told that The required assembly 'Assembly 123' could not be found. If I try and create new projects now and move "assembly xyz" to any other folder on the...
85
4875
by: fermineutron | last post by:
Some compilers support __asm{ } statement which allows integration of C and raw assembly code. A while back I asked a question about such syntax and was told that __asm is not a part of a C standard. My question now is: Is there a chance that such statement will become a part of C standard in the future? In some cases using asm language is the best way to acomplish some small task, hence integration of C and asm would greatly enhence C,...
4
1920
by: =?Utf-8?B?RXJpYyBFaWNrZQ==?= | last post by:
When I reference an assembly in vs.net it will move the .dll and xml comments to the same directory as the application when it is compiled. I wan't to cause the same behavior with a license file. So if the license file is in the directory where my assembly is and vs.net moves a copy of the assembly into the applications directory (bin\Debug for example) I want to he license file to move just like the xml comments file does. Is this...
1
1577
by: divya | last post by:
Hi, I made an assembly (class library project) in Dot net and wanted the assembly to have COM interoperability successfully got the assembly working with VB6 performing following steps: 1.Create a strong name key file using sn tool. 2.In the Class Library Project (I am using VS 2005) 2.1 Select "Register For COM" in the Project Properties 2.2 Inside assemblyinfo.cs set COMVISIBLE to True 2.3 Assign strong name key file to the assembly...
0
1391
balabaster
by: balabaster | last post by:
Hi all, I'm creating a class factory and a bunch of adapters to allow in house applications to communicate with mobile applications over different cellular networks. I've got my class factory and interface definition in a single assembly. The class factory will instantiate the correct adapter for communication with a mobile device at runtime. We're doing it this way because we won't know which cellular network we're communicating over...
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10169
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,...
0
10003
tracyyun
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...
0
9050
agi2029
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 project—planning, coding, testing, and deployment—without 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...
1
7546
isladogs
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...
0
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.