gacutil

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

visual studio post-build script error calling gacutil.

I'm on vista, with VS2005 running as admin. Both vs2005 and vs2008 are installed. If I explicitly use the path to gacutil, it works, but not if I only call gacutil like this: if NOT $(ConfigurationName) == Release gacutil /f /i "$(TargetPath)" I would just update the post-build script, but I've been asked to leave it alone. It's ...

Register DLL in GAC without Assembly Manifest

I have a DLL I wish to register with my GAC. I enter the command: gacutil /i c:\temp\msvcr100.dll and I get the error: Failure adding assembly to the cache: The module was expected to contain an as sembly manifest. All I have is the DLL. Is there a way to create / fake / bypass it? For those interested, I am attempting to extrac...

Using Powershell to Register a file in the Gac

Is there a simpe way to in powershell (I imagine using gacutil.exe) to read from a text document a path\assembly and register it in the GAC? So for example a .txt file that looks like: c:\test\myfile.dll c:\myfile2.dll d:\gac\gacthisfile.dll The powershell script would read that into a stream and then run gacutil on each of those assem...

Location of Gacutil with vs 2008

I want to run a post build script that installs the dll in the gac, but i have to use the full path to gacutil.exe, where can i find this? i have visual studio 2008 ...

NGen and Gacutil best practices

Hi there, This is my first post, so please forgive me if this isn't written well. I've been working on a WinForms application which has about 5 referenced assemblies - written by us, and about 8 referenced assemblies by third parties (we wont be hoping to update them in the future unless something goes terribly wrong - Infragistics/Dev...

Assembly installed into the GAC not showing up in Visual Studio

This sounds related to this question, but they aren't the same thing. That question had no assemblies showing up. Mine has everything except the specific one I installed. I'm hoping someone has a solution to this... am I doing something wrong? Or did I find some bug in VS? I am using Visual Studio 2010 Professional Beta 2 on Windows...

Two locations of gacutil.exe

I'm developing on Windows 2008 R2 Server, 64 bit. I'm learning how to use gacutil.exe I found two copies of this file: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64 C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\ I built a dll in VS2007, then I added a build post event, that calls gacutil.exe to transfer the dll to GAC. Doe...

Unable to uninstall an Assembly from GAC?

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

gacutil - cannot launch on vista x64

I thought this was a privilege issue but I logged on as admin and still couldn't get more than a brief flash of the command window. I am just double clicking on the exe file I found in the 7.0 sdk As a side question, can you just go into the GAC manually and delete something?? Cheers, Berryl ...

How can I add dll to the GAC?

running gacutil.exe /i ProjectX.Core.dll, I got the message: Assembly sucessfully added to te cache, but I can't see this assembly in the c:\windows\assembly folder. What can be the problem? ...

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

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:\WIN...

Where does VS 2010 Tools' gacutil.exe install assemblies?

I used the Visual Studio 2010 Command Prompt's gacutil.exe to install an assembly. I expected the assembly to be added to C:\WINDOWS\assemblies, but it was instead added to C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL and is not showing up in C:\WINDOWS\assemblies. Is this a problem and should I be concerned that it's not showing up ther...

Trouble registering ChilkatDotNet4.dll to the GAC

EDIT: the GAC issue below may not actually be the culprit. Turns out, even when I create a brand new Console App project and add the .dll directly (so that it lives in the bin), I still can't run it on the sever. Also, I've noted that Console apps are created targeting the .NET 4.0 Client Profile rather than the .NET Framework 4. When...

how to assign Strong Name to an Assembly?

I have created strong name using - sn -k C:\strong.snk nao how to assign this key to any assembly? and where I have to use gacutil? ...

gacutil from MSBuild

Hi, in my MSBuild file (TFSBuild.proj since I am running Team Builds) the exec command=gacutil alwys fails with the following error: Failure initializing gacutil my build machine is a W2K3 with Team Build 2010. any ideas. Many thanks ...

Location of GACUTIL in Windows server 2008 production box

I have a production box (Windows Server 2008) where no visual studio is installed. Can I use GACUTIL there...If so where can i find the gacutil exe in that machine ...

GACUtil "Assembly successfully added to the cache" but "Number of items = 0"

Why, when I run: gacutil –i myAssembly.dll do I get: Assembly successfully added to the cache But then when I run: gacutil –l myAssembly.dll I get Number of items = 0 ? ...

where is gacutil.exe?

Hello everyone, I am using Windows 7 Enterprise 32 bit. I have used Windows command line, and also used VSTS 2008 command line, but when executing gacutil.exe, there is command not found error. I am wondering whether I need to install gacutil.exe from somewhere or gacutil.exe is located in somewhere else in my computer (I searched my c...

Consume a .NET Assembly from a classic ASP page.

Hi, I have an old .net 2005 web site that has some asp pages and having object reference problem accessing .net dll. The maintenance task was handed down to me and the original developer is nowhere to be found :( I started at .Net already so I don't really master handling this dll hell kind of problem. On the arrow below is where I'm...