gac

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

ε祈祈猫儿з 提交于 2019-11-27 23:18:18
问题 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

.NET Reference “Copy Local” True / False Being Set Based on Contents of GAC

本秂侑毒 提交于 2019-11-27 22:51:19
We had a very interesting problem with a Win Forms project. It's been resolved. We know what happened, but we want to understand why it happened. This may help other people out in the future who have a similar problem. The WinForms project failed on 2 of our client's PCs. The error was an obscure kernel.dll error. The project ran fine on 3 other PCs. We found that a .DLL (log4net.dll - a very popular open-source logging library) was missing from our release folder. It was previously in our release folder. Why was it missing in this latest release? It was missing because I must have installed a

Unable to uninstall an Assembly from GAC?

家住魔仙堡 提交于 2019-11-27 21:16:38
I am unable to uninstall an Assembly (log4net.dll) from GAC. It is giving following error. "Assembly is required by one or more applications". However if I search the Assembly using ProcessExplorer nothing comes up? How can I remove this Assembly from GAC? Pieter Germishuys Have you considered reading this KB article and trying it out? Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved.

Gacutil.exe successfully adds assembly, but assembly not viewable in explorer. Why?

谁都会走 提交于 2019-11-27 18:04:55
I'm running GacUtil.exe from within Visual Studio Command Prompt 2010 to register a dll (CatalogPromotion.dll) to the GAC. After running the utility, it says Assembly Successfully added to the cache , and running gacutil /l CatalogPromotionDll shows that the GAC contains the assembly, but I can't see the assembly when I navigate to C:\WINDOWS\assembly from Windows Explorer. Why can't I see the assembly in WINDOWS\assembly from Windows Explorer but I can see it using gacutil.exe? Background: Here's what I typed into the command prompt for VS Tools: C:\_Dev Projects\VS Projects\bmccormack

Path of DLL installed to the GAC

╄→尐↘猪︶ㄣ 提交于 2019-11-27 15:40:37
问题 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

/LinkResource in Visual Studio 2010

久未见 提交于 2019-11-27 15:35:00
/linkresource is a csc option that allows to link an assembly to its unmanaged dependencies. When the managed assembly is added to the GAC, the dependencies are placed in the same folder. This is how all the .NET wrappers should be installed... There is very little information on how to do this in Visual Studio. There is no official answer, just people that hacked a solution. For example http://www.netframeworkdev.com/msbuild/msbuild-linkresource-nonassembly-external-file-beforecompile-24358.shtml . This used to work on VS2008 but it looks like it doesn't work on VS2010... :-/ Does VS2010

C#: How to load assembly from GAC?

那年仲夏 提交于 2019-11-27 15:08:20
I have "mycomp.myassembly.dll" in GAC but Load and LoadFrom throws file not found exception and LoadWithPartialName returns null. I'm doing the following: AssemblyName name = new AssemblyName(); name.Name = "mycomp.myassembly.dll"; Assembly assembly = Assembly.Load(name); fails with FileNotFound for mycomp.myassembly.dll file, and Assembly assembly = Assembly.Load("mycomp.myassembly.dll"); fails with exactly the same message. I double checked that assembly is in GAC (and even did gacutil /if for it again) and it does work in all other cases, I just unable to load it myself. What am I doing

C# how to register assembly in the GAC without GacUtil?

谁说我不能喝 提交于 2019-11-27 13:03:37
I need to register an assembly in the GAC using batch file. Is there a way to find the installation location of GacUtil.exe or is there a way to register the assembly without GacUtil? GacUtil is not installed with a framework install only with an SDK install - so you couldn't guarantee it would be on the box you're installing on. This won't work within your batch file but if you have developed the application yourself you can use the GacInstall method described below: http://msdn.microsoft.com/en-us/library/system.enterpriseservices.internal.publish.gacinstall.aspx Alternatively I'd recommend

Why should I NOT use the GAC?

≡放荡痞女 提交于 2019-11-27 11:49:35
There have been a few questions asked along this line stackoverflow such as What are the advantages and disadvantages of using the GAC and When and when-not to install into the GAC? and a few people have asked it on the web expamle . I can't any convincing arguments for not using the GAC. I am sure I am being naive but it seams like there are more benefits (such as performance and version control issues) to using the GAC then not using it. Why should I NOT use the GAC? RoadWarrior Chris Sells gives probably the best reason for avoiding the GAC where you can: What this boils down to is that any

How can I reference a dll in the GAC from Visual Studio?

♀尐吖头ヾ 提交于 2019-11-27 11:06:30
This assembly is in the GAC: Microsoft.SqlServer.Management.RegisteredServers.dll How can I add a reference to this assembly in Visual Studio? I can view the file in c:\windows\assembly\ As the others said, most of the time you won't want to do that because it doesn't copy the assembly to your project and it won't deploy with your project. However, if you're like me, and trying to add a reference that all target machines have in their GAC but it's not a .NET Framework assembly: Open the windows Run dialog (Windows Key + r) Type C:\Windows\assembly\gac_msil. This is some sort of weird hack that