Wrox Programmer Forums
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 6th, 2006, 05:03 AM
Authorized User
Join Date: Apr 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default GAC trouble


I am trying to register a .net 2.0 dll into the GAC in Visual Studio 2005 pro.

I have your book "Proffessional C# 2005" and on page 446 in the Assemblies chapter, you are using gacutil to install a dll into GAC. But gacutil is a .net 1.1 tool is it not?

Anyway, I have gacutil lying in the C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 folder, and I try to use that in a Post build event on my project output like this (I have a PATH variabel for gacutil and it is strong named):

gacutil /i $(TargetPath)

but it returns an error 1.

If i try it from a command prompt it just says:
"Failure adding assembly to the cache: Unknown Error"

What can be wrong here?
Is it all possible to use gacutil on a .net 2.0 dll?


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Read GAC lovesyogi C# 2 February 1st, 2007 06:20 AM
Installing non-assembly files in the GAC eadred .NET Framework 1.x 0 April 28th, 2006 09:12 AM
Web.Config read from the GAC nzwy1p .NET Web Services 1 October 14th, 2003 08:39 AM
How to refer assemblies which are in GAC ? kishore_peddi C# 0 October 12th, 2003 09:09 AM
Problems with GAC briggsa VS.NET 2002/2003 0 July 17th, 2003 07:32 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.