global-assembly-cache

Do I ever really need to use the Global Assembly Cache (GAC)?

I've been building .NET web applications for many years now, and I never use the GAC? What am I missing? Or am I better off staying away from it? ...

How can I automate the installation of assemblies to the GAC over a network?

I need to install the same assembly to the GAC for 30+ servers. I would prefer not to have to RDP to each server and install the assembly manual. Is there a straightforward way to install assemblies to the GAC over the network? ...

Wix - Dynamically Register Assemblies to GAC

I am writing a Wix installer to install .NET assemblies to the GAC. Easy... My question is: is it possible to future proof this scenario so that I can pull ANY assemblies found in an existing network folder and register each of them - without having to hardcode the exact assembly names? This would allow me to create a single MSI that co...

Microsoft Office Interop Assembly references.

I have an application developed in Visual Studio 2005 which I am deploying using ClickOnce. My solution contains two projects - a user interface layer coded in VB, and a class library coded in C#. My C# class library has some code that uses the Outlook and Excel Interop Assemblies (Microsoft.Office.Interop.Outlook and Microsoft.Office.I...

How to add VB.NET Class to GAC, and use it in Code-Behind

I created a VB.NET Class, and created a strong key, and added it to the GAC using the GacUtil. That part has gone smoothly. The Assembly is installed in the GAC and seems to be installed/configured correctly. FYI, the assembly is a Class called Tester, that exposes one public static method called HelloWorld, which returns a string, "H...

Methods to programmatically install a .NET assembly into the GAC

I need to create a small app or script to install a .NET assembly into the GAC. I've read there are a couple ways to do this including: using gacutil.exe executing the following line of code: new System.EnterpriseServices.Internal.Publish().GACInstall("Foo.dll"); However, what would happen if I just created the appropriate director...

How do I add a modified dll to the Global Assembly Cache?

I have the MySQL Connector/NET installed on my PC. I modified the source code and recompiled one of the dlls (MySQL.Data.dll). With the program already installed, how can add this dll to the Global Assembly Cache? If your answer involves using gacutil.exe, please tell me where I can find it on my PC or where I might download it. Than...

See if any application has a DLL from the GAC loaded

I'm trying to deploy new copies of my DLL to the GAC on remote servers, but I need to identify if any processes currently running have a loaded copy of the DLL I'm replacing - I'd like to restart them, or at least tell the user. For example, Biztalk seems to load the DLLs it needs the first time they're used, and then replacing them kee...

How do I manually copy assemblies into the GAC?

I'm using Windows 7 Ultimate, trying to manually copy a file into the GAC. I tried using Windows Explorer but it promptly tells me "Access is denied". I tried using the command line with elevated permissions and it says the file was copied but I can't find the assembly anywhere. I'm updating a third party spreadsheet component (GemBox) ...

Define a .net reference to always use the latest version of a GAC'd dll?

We have a vendor who is writing an application for us who makes use of a dll I've provided to them. My boss just found out that if we ever need to make a change to one of our dll's we'd have to provide the updated version to the vendor so they could recompile their project. This causes problems because we don't have automated testing a...

Using installshield to replace a same-versioned DLL in the GAC

We recently put out an update of one of our apps with a "test" DLL from a third party. The third party does not update their assembly versions on the dll's, only the file versions, so multiple apps can reference different "versions" of it. However, the GAC still allows us to keep the newest version, because it also checks the file versio...

bin-deploying DLLs banned in leiu of GAC on shared IIS 6 servers

I need to solicit feedback about a recent security policy change at an organization I work with. They have recently banned the bin-deployment of DLLs to shared IIS 6 application servers. These servers host many isolated web application pools. The new rules require all DLLs to be installed in GAC. The is a problem for me because I ...

Confusion about GAC

While the interview , I was confused after interviewer asked this question about Global Assembly Cache (GAC). What should be the answer? Question 1: Instead of keeping the assembly in GAC, If we create the directory and keep our assemblies there and if we make that directory as shared so can the connected computers can use those assembl...