gac

What are the advantages and disadvantages of using the GAC?

And on top of that, are there cases where one has to use the global assembly cache or where one cannot use it? ...

Asp.net Reinstalling a DLL into the GAC

I'm trying to reinstall a DLL in the GAC, everything seems to work fine but the web application accessing it still seems to be using the old one. The old DLL is the same version as the new one with only a minor edit, it will be used by 50 different sites so changing the version then changing the reference in the web.config is not a good...

Register Multiple Assemblies to the GAC in Vista

I've got a whole directory of dll's I need to register to the GAC. I'd like to avoid registering each file explicitly- but it appears that gacutil has no "register directory" option. Anyone have a fast/simple solution? ...

What path should I pass as an AssemblyPath parameter to the Publish.GacRemove function?

I want to use the Publish.GacRemove function to remove an assembly from GAC. However, I don't understand what path I should pass as an argument. Should it be a path to the original DLL (what if I removed it after installing it in the GAC?) or the path to the assembly in the GAC? UPDATE: I finally used these API wrappers. ...

How to add a dll to gac in vista

When I drag & drop a dll to the assembly folder on vista, I get the error "Access is denied: mydll.dll". How can I bypass the error message and add my dll to gac? ...

Adding assemblies to the GAC from Inno Setup

Until recently we were using Inno Setup for our installations, something I would like to continue doing, unless we can get an uninstall option in the start menu (thanks Giovanni Galbo), however we now need to GAC some external libraries, something I suspect is only doable (or at least only supported) though the .NET Setup Project. Is it...

Where can I find Microsoft assemblies that are not already in Visual Studio?

I figured someone can answer the question generally but if anyone wants to get specific I am trying to use: using System.Web.Security.SingleSignOn; using System.Web.Security.SingleSignOn.Authorization; I've googled my brains out and this is the closest answer I found: "We discussed this offline, but it looks like the ADFS assembly is ...

Adding a web reference to a DLL which is GACed

I come across this problem when i am writing an event handler in SharePoint. My event handler has a web reference. When i create this web reference, the URL of the web service will be added in the .config file of the assembly. If i have to change the web reference URL i just have to change the link in the config file. Problem comes whe...

Do assemblies placed in the GAC gain full trust?

I've been hearing conflicting facts about this topic. What is correct? ...

Best GAC Tutorial/Overview?

Can someone recommend a good soup-to-nuts tutorial that covers the GAC/Global Assembly Cache.? ...

Does a (.net) COM+ assembly need to be installed in the GAC?

I have a .net assembly that has a COM+ ServicedCopmonent in it and at the moment I install it into the GAC to get everything working. This means that I need to have every assembly that it references in the GAC as well. During development it is quite painful to make changes to thes assemblies, re-install them to the GAC and then test. ...

COM Registration and the GAC

I have a web project, a C# library project, and a web setup project in Visual Studio 2005. The web project needs the C# library needs to be registered in the GAC. This is simple, just add the GAC folder to the setup project and drop the primary output of the C# library in there. The C# library also needs to be registered for COM interop....

How to configure an assembly in Global Assembly Cache?

Hi, Is there a way to configure an assembly in GAC? I want to add a custom configuration to my assembly with System.Configuration. Mher ...

How do I ignore a GAC reference from Cassini?

I have an assembly in the GAC which gets loaded when I'm debugging a web app. However, I've changed that assembly in the web app that I'm debugging but VS2008/Cassini is picking up the one in the GAC. How do I make VS2008/Cassini use the one that I'm debugging? ...

How to make Publisher Policy file redirect assembly request

I have created a common library at work, and it is installed in the GAC on our test server. I've recently updated it and I want all of our applications to be using the update. I created a publisher policy assembly and installed it in the GAC along with the update, but when a web app loads Leggett.Common, 1.0.0.0, it isn't redirected to L...

.NET assemblyBinding configuration ignored in machine.config

I have a situation where I need to be able to load assemblies in the GAC based on their partial names. In order to do this I have added the following to my app.config file: <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <qualifyAssembly partialName="MyAssembly" fullName= "MyAssembly, Ver...

Why is ASP.NET failing due to permissions on GAC?

I'm trying to run an ASP.NET 2.0 application on an XP machine. As far as I know, everything is configured correctly. However, I receive the following message: Server Application Unavailable And two events appear in the Application event log each time: aspnet_wp.exe (PID: 3352) stopped unexpectedly. Failed to execute the...

Visual Studio unit tests throw MissingMethodException when assembly is in GAC?

My application contains a piece of code that executes inside of Component Services, so we need to register our business rules layer (and its dependencies) in the GAC. One of those dependencies is FooCore.dll, which contains classes and services visible to the entire app. Everything was working fine, until I added a new method to a class...

What's the 'correct' way of registering/installing an Assembly to the GAC?

There seems to be lots of different ways to register assemblies with the GAC, as in, they 'work'. However, what's the "proper" way of doing it? In response to Lou Franco (and gacutil): I'm using Gacutil for development, but it seems to me to be not the proper way to install it, since gacutil isn't included in the basic .NET utilities ...

If I have two assemblies with the same name in the GAC, how do I tell .Net which to use?

I have two assemblies with the same name in the Global Assembly cache, but with different version numbers. How do I tell my program which version to reference? For the record, this is a VB.Net page in an ASP.Net web site. ...