gac

ClickOnce Application Deployment dll reference question

Hello, I have installed an application off the web via ClickOnce. Examining the application in Reflector shows that it depends on two custom libraries--Thirteen23.Library.3 and TwitterLib. When attempting to open classes defined in these libraries, Reflector complains that "The following assembly name cannot be resolved automatically...

Installing assemblies to GAC with Windows Installer

I am creating a Windwos Installer project just for the use of installing our third party assemblies into the gac of the users computer. The problem i am running into, is when i make an update to the assemblie and increment it's version number, i get an error saying: "Another version of this product is already installed. Installation of ...

DLL in GAC references a file relatively ... where should I put it?

I have a third party dll that I need to install to the GAC. The dll needs access to a ini file that according to the documentation needs to be in the same location as the dll. If I install the dll into the GAC, what location should I copy the ini file to in order for the dll to find the ini file? ...

C# AIM Bot Not Loading Libraries from AOL SDK

I am trying to get an AIM Bot set up in C# and I am having issues with the Assemblies. I have tried placing the DLL files in the BIN folder of the project and in the windows/system32 folders. I have registered the DLL files so that I could add them to the project in VS2008. I also attempted the install them into the GAC but I keed get...

Synchronize GAC across multiple systems

Hi, I'm looking for a tool that keep GAC synchronized across different systems. when a new assembly added to one system, it should be GACed on other systems automatically. Thanks ...

.NET assembly cache / ngen / jit image warm-up and cool-down behavior

Hi, I have an Input Method (IME) program built with C#.NET 2.0 DLL through C++/CLI. Since an IME is always attaching to another application, the C#.NET DLL seems not able to avoid image address rebasing. Although I have applied ngen to create a native image of that C#.NET 2.0 DLL and installed it into Global Assembly Cache, it didn't 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...

Using undocumented native code APIs to install items into the GAC

I'm working on a project whose setup uses the APIs documented in Microsoft Knowledge Base article KB317540 to install and uninstall assemblies into the GAC. The KB article states: SUMMARY The native code application programming interfaces (APIs) that allow you to interact with the Global Assembly Cache (GAC) are not documen...

Is it possible to install an assembly into the GAC as some sort of 'linked assembly'?

Hello, I'm trying to deploy some sort of framework and therefore need to register some assemblies in the GAC. The interesting part is: These GAC assemblies should only be used by the framework developer, the client apps should not use these GAC assemblies but the ones in their local directories (the GAC assemblies could be of a differe...

ASP.NET - Add Reference of GAC is not possible ?

I am new to ASP.NET having some basic doubts. 1) The public assemblies are deployed in GAC.Even when i go for "Add Reference ", I can not point to c:\windows\assembly ( i hope it is not possible) .Still i need to refer the assembly from ..\Bin folder of the source project ( custom assembly).Is there any consideration behind it? 2...

DLL's in a ASP.NET Application and SourceSafe/Sharing between computers

I have an application that uses currently two DLL's for external libraries (AjaxControlToolkit is one of them) I was wondering the best way for a colleague of mine to check out my application from our SourceSafe database and use these libraries. I don't know much about utlising external libraries other then really adding them as a refe...

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...

Tracking down slow managed DLL loading

I am faced with the following issue and at this point I feel like I'm severely lacking some sort of tool, I just don't know what that tool is, or what exactly it should be doing. Here is the setup: I have a 3rd party DLL that has to be registered in GAC. This all works fine and good on pretty much every machine our software was deployed...

How do you add a DLL to the GAC from an InstallScript Project in InstallShield?

How do you add a DLL to the GAC from an InstallScript Project in InstallShield? I tried added [GLOBALASSEMBLYCACHE] as a destination to the component, with no luck. It tells me that is not valid data for the destination. ...

C# Reflection Load "System" assembly without FQN

I want to use Assembly.ReflectionOnlyLoad() to extract MemberInfos from some .NET system assemblies like System, System.Windows.Forms and so on. Now the way I undestand it, I must supply the fully qualified name of the assembly (inlcuding version info and all that) or the path. However, I want my code not to rely on a specific version. I...

Weird problem with Visual Studio 2008 website reference

I'm trying to add a reference to the GAC version of System.Xml in a Visual Studio 2008 web site project. I right-click the project icon in the Solution Explorer, and click Property Pages. Under the References tree option, I click the 'Add' button on the right. I navigate to System.Xml in the .NET tab, and double click it (the Path it ...

Can't find al.exe for publisher policy in .NET 3.5

I am trying to create a publish policy for a .NET 3.5 DLL. I can't seem to make it work. I have tried using the Assembly Binding Log Viewer, it looks like it can't find the assembly in the GAC. I noticed however my AL.exe.config file says that is only supports .NET 2.0. Is there a 3.5 version of AL.exe? If so, where do I get it? I tried ...

ASP.NET with Delphi 2007 for .NET. Could not load file or assembly … The located assembly's manifest definition does not match the assembly reference

This one’s a head scratcher. Here’s the deal. While deploying a beta copy of an ASP.NET application built with Delphi 2007 for .NET to a test server I encountered an odd problem. The application was unable to start because it could not load the correct version of an ADO.NET data provider that I was using. Only by including a version o...

How to determine the latest version number of a GAC assembly.

Hi: I'm trying to create a diagnostic log for my application that will display the latest version number of an assembly installed in the GAC. For example, there are two versions of the same assembly in the GAC: foo.dll version 1.0.0.0 and foo.dll version 2.0.0.0. I need a function like the following: GetLatestGacVersion("foo.dll"); ...

How can i get the location of the GAC using C#?

Hi, How can i get the location of the GAC directory using C#? Exist an entry in the Windows Registry? UPDATE I need the location because, i want to enumerate and analize the assemblies located in the GAC. Bye. ...