gac

Clickonce Office add-in assembly reference problem upon deployment

I have developed an Office 2007 C# add-in. It uses clickonce for deployment. On systems with Office 2010 all is ok but on a machine with XP SP3, NET 3.5sp1 and Office 2007, I get a strange assembly loading error. My add-in does not directly reference Microsoft.Office.Interop.SmartTag.dll. This gets referenced by Microsoft.Office.Tools.C...

Updating a DLL in the GAC

I have an API DLL that several third party applications reference. Some of these applications want things two ways in terms of updates. 1) I want the latest stuff 2) Don't update my direct binaries that often There has been the thought of moving the DLL into the GAC and writing another DLL that is simply the wrapper for the DLL in th...

problem loading site dlls from the GAC

I have about 70 sites on a server that all use the same dlls. I thought it would be better to register them in the GAC and remove them from the site's bin folder so they're all looking at one place. My understanding is that if a dll that the site requires isn't found in the bin directory that asp then looks for it in the GAC. I've str...

publisher policy in GAC

I want to redirect consumers of dll v1 to dll v2. I will add a publisher policy in GAC for that. Must the policy be in GAC? Does this mean dll v2 itself must also reside in GAC? ...

Configuring GAC-placed assemblies. Best practice

I have to implement .net assembly that would be put into GAC. It relies on RDBMS connection string and some additional params - what is the best place I should put it? Machine.config, registry or something more appropriate? Such information should be placed into application configuration file (app.config/web.config) that uses component ...

Is there a way in VS 2010 to add a reference to an assembly that is only in your GAC?

Right clicking on project and clicking "Add Reference..." does not provide a way to do this. The .Net tab doesn't look in the GAC and if you browse to C:\windows\assembly you are presented with the actual directory structure of the GAC. Thanks! ...

nUnit - ignore GAC copy of a DLL

I am using a nUnit to, well, unit test an assembly. The assembly is in my project output dir (\bin\debug) and is loaded into nUnit (Assemblies > Add Assembly) from this location. However an older version is also in the GAC and nUnit is picking this one up instead. I can of course remove the old version and re-install to the GAC upon b...

Can I install binaries into the GAC via a VSIX installer?

I've got a hybrid installer which drops binaries on the target machine (WIX) as well as installs templates into Visual Studo (VSIX). The VSIX is stored as a binary in the installer and is installed via a custom action when the installation is finalized. It works, but there are a few issues. I could get around those issues if I could s...

WebDeploy with MSdeploy.exe fails to sync GAC Assembly because dll(s) locked by another process

Hi all, I'm having this problem using msdeploy to sync GAC assembly to many Application Servers. When I run this command msdeploy -verb:sync -source:gacAssembly="'MyAssembly'" -dest:gacAssembly,computername=DESTINATIONSERVER I obtain this error: *Microsoft.Web.Deployment.DeploymentException: (28/09/2010 16.46.37) An error occurred...

GACed .net library project succesfully build only on second try

I'm trying to build a project library that needs to be in the GAC, so I added the following line as a post build event: "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe" -if "$(TargetPath)" For every even (second build, forth build, etc...) build execution I get this: ------ Build started: Project: Test.BusinessLog...

.Net compiled 3rd party dll reference conflict

I am using Umbraco (.Net CMS) and it has a reference to a specific version of a dll (see 1 Umbraco Reference below). This is fine until I try to hook into the .Net MailChimp API which references a different vesion of the same DLL (see 2 PerceptiveMCAPI below). I can think of a couple of options for resolving this a. Get either the U...

DLL Caching issues on IIS/Sharepoint GAC

We have a handful of sharepoint sites that uses various UserControls we have developed for custom stuff including authentication and authorization. On one of these sites when a new user is created by an admin it creates a password of this minumum length number of characters, saves the user info and sends an email to the users email addre...

how do you add multiple versions of the same assembly to the gac

My one ASP.NET web site uses two different business object class libraries. There is a common framework DLL (CSLA.dll) between these two libraries. The problem is that one library wants to upgrade to CSLA v.4.0.1 and the other wants to remain at v.2.1.4. How do I solve this conflict at the web site? I think I need to install both versio...

Cannot access GAC from C# code

I have a third-party .net DLL that I installed and registered, and appears in the GAC (c:\windows\assembly). I am able to successfully access the GAL in my development and my test environments, but not in production. My web service is written in C#.Net, .Net 2.0 framework. I can only assume that the problem occurs during the line wher...

Biztalk 2010: calling a dll from GAC with dependencies

I have to call functions from a custom dll from biztalk orchestrations (similar to this solution http://www.codeproject.com/KB/biztalk/CallCustomDllBiztalk2006.aspx). The dll calls functions of a third party dll, which uses some other third party dlls (we are using to communicate with a legacy system). The article http://msdn.microsoft....

Does Windows/.net put DLLs in the GAC automatically under any circumstances

I have a program which references a DLL. Code in this DLL gets the directory of the executing DLL and uses that to look for an XSD file to load (i.e. I expect the code to be executing from c:\foo\my.dll so it looks for c:\foo\validation.xsd). On of the thousands of customer installations I have this works fine. However in one case the D...

VS 2008 Setup Project

I have an assembly installed to the GAC. We will always only have one version of this assembly. I have created a setup project to install this assembly to the gac. What I want to happen is for the old version to be removed from the gac before installing the new one. I have done the following: Set the RemovePreviousVersion property o...

Can I create an extension method for System namespace and add it to the GAC?

Hi, In principle, can I create a class library to store my Extension methods for System namespace for example, and add it to the GAC to be usable from any project in my development machine and able to deployment on the GAC of other machines by the setup project ? If yes, Do you think it useful? Thanks in advance. ...

How to know when a dll is removed from the GAC

From times to time when PC restarts, some dll from the GAC are removed. I am sure it's not a manual operation. How can I find how and when the dll are removed ? NB : after each restart, I manually add the dll by drag and dropping them to C:\WINNT\assembly ...

Getting MSBuild and CruiseControl .NET to build and deploy VS2010 database projects

I almost have a NAnt script together that will build and deploy VS2010 database projects, but one error stands in my way: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.TSqlTasks.targets(56,5): error MSB4062: The "SqlBuildTask" task could not be loaded from the assembly Microsoft.Data.Schema.T...