gac

How can I list all registered assemblies in GAC?

和自甴很熟 提交于 2019-11-29 05:46:19
问题 How can I list all the assemblies that are in the GAC? Do I need a tool that makes it easy to view them? 回答1: You can use gacutil provided with Visual Studio for that. Simply open the Developer Command Prompt (available in Start Menu>App>Visual Studio) and run the following command: gacutil -l >yourassemblies.txt Gacutil is also available as a separate download if you don't have/want Visual Studio. 回答2: If you need the output in text-form, you can use gacutil /l. If you need to get that list

Why doesn't the office PIA install correctly to the GAC?

微笑、不失礼 提交于 2019-11-29 05:43:16
I am currently working on a c# project, where I need to access Outlook. The development is being done on two different machines, one of which has office installed, and one of which doesn't. I previously asked how to compile my project against the outlook com object, and one of the comments suggested that I compiled against the office primary interop assembly, or PIA. In my downloaded Office 2007 PIA , there is an msi file, that is supposed to install a number of PIAs for the different parts of Office. My problem is that this seemingly doesn't happen. On my office-less machine, after typing

How to register a non-strong-name assembly to be loaded as if it were in the GAC?

折月煮酒 提交于 2019-11-29 04:30:31
One of our partners provided us with an assembly we need to access from our application. Unfortunately, this is not strong-name so we can't install it to the GAC. And we can't place it in the same place as our executable. Is there a solution for this? EDIT: This will be a temporary solution only for testing, when they go RC, we will have a strong-named assembly. You have a few options at that point. The first is to place the assembly in a directory that has the name of the assembly (without the extension) which is a subdirectory of the application directory . The second is to specify the sub

Forcing the ASP.NET Application to load the assembly from bin not from GAC

这一生的挚爱 提交于 2019-11-29 01:25:13
Is there any way to force my asp.net application to load the assembly from local bin directory since there is another older version of the assembly with the same name in the gac? I can't delete the gac version since other applications are using it and I am facing some difficulties when adding the newer version to the gac. I found it To force your application to read from local bin directory you have to remove signing from your assembly and then the application will load the assembly from bin. Thanks Wyatt Barnett and murad. Wyatt Barnett Change the version number, strong name the assembly and

Path of DLL installed to the GAC

喜你入骨 提交于 2019-11-29 01:08:19
How can I get the (physical) installed path of a DLL that is (may be) registered in GAC? This DLL is a control that may be hosted in things other than a .Net app (including IDEs other than VS...). When I use System.Reflection.Assembly.GetExecutingAssembly().Location, it gives path of GAC folder in winnt\system32 - or in Design mode in VS gives the path to the VS IDE. I need to get the path where physical dll is actually installed - or the bin/debug or (release) folder for VS. Reason is that there is an XML file I need to get at in this folder, with config setting that are used both in design

.NET assembly loading priorities

和自甴很熟 提交于 2019-11-28 22:46:32
问题 I have a solution with 3 projects (GUI, BL and DAL). The DAL assembly is signed and deployed in the GAC. When I build the solution the DAL is compiled and the assembly placed in the bin folder of the main project. But when I run the application, it loads the GAC version instead of the local one. Why is this? I realized that because the version in the GAC was not the latest one and some methods were missing, although it compiled fine. Does the GAC have priority over the local bin folder? Tks

GAC 32bit vs. 64bit

半腔热情 提交于 2019-11-28 20:07:26
I've been searching for a while trying to understand this better, but am not finding any straight-forward answers on this. I have a component that I need to add to the GAC. I'm running Windows 7 64-bit, and in an effort to troubleshoot an issue (SSIS 2005 isn't recognizing the DLL), I'm trying to make sure I have the DLL (.NET 4.0) registered in the proper GAC. So here are my questions: Where are the physical locations in Windows 7 for both 64bit and 32bit GACs? I know of C:\Windows\assembly, but not sure which one this is, and where the other one is. Which version of gacutil do I use to add

Is it possible to Load an assembly from the GAC without the FullName?

丶灬走出姿态 提交于 2019-11-28 18:50:11
I know how to load an assembly from a filename, and also from the GAC. As My .msi file will put a dll project into the GAC, I'm wondering if it's possible to load it from the GAC unknowing the FullName (I mean just with the assembly name, or even the dll filename), because I have to Load this assembly from another project. Here is a piece of code that allows to do this, and an exemple: string path = GetAssemblyPath("System.DirectoryServices"); Assembly.LoadFrom(path); Note if you need a specific processor architecture, since it supports partial name, you can write this kind of things: // load

Check GAC for an assembly

不羁的心 提交于 2019-11-28 09:39:29
How to programmatically check GAC for an assembly? Without even trying to get complicated, you could just shell out to gacutil and capture the output. For example, gacutil /l Microsoft.Practices.Unity gives me: Microsoft (R) .NET Global Assembly Cache Utility. Version 3.5.30729.1 Copyright (c) Microsoft Corporation. All rights reserved. The Global Assembly Cache contains the following assemblies: Microsoft.Practices.Unity, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31 bf3856ad364e35, processorArchitecture=MSIL Number of items = 1 versus gacutil /l Some.Nonexistant.Assembly : Microsoft (R

Config files for assemblies in GAC

大城市里の小女人 提交于 2019-11-28 03:06:11
问题 I have a .NET dll which needs to read it's config settings from it's config file. Usually, the config file is placed in the same directory as the DLL. But how do i read the config file if the DLL is GAC'ed, because I can put only the DLLs in the GAC, and not it's config files. 回答1: Does the user need to configure the Dll? If so, then the DLL should be using configuration settings from the app.config file, not it's own config. The app.config file should be stored in the same directory as the