Home All Groups Group Topic Archive Search About

gacutil error in .NET 2.0

Author
30 Nov 2006 4:59 PM
RapidFireBill
The command:

gacutil /i C:\A10CSS\A10CSS\bin\Debug\OOALC.CSS.A10.A10CSS.dll

from a command window gives the following error since moving to Visual
Studio 2005:

"Failure adding assembly to the cache: Unknown Error"

I can drag the strong named dll to the GAC and and it is successfully
installed into the GAC.

Any Ideas why I get the error in .NET 2.0?

--
<_/\_>

Author
30 Nov 2006 9:29 PM
William Sullivan
Have you checked the system logs?  Unknown error isn't much to go on...

Show quote
"RapidFireBill" wrote:

> The command:
>
> gacutil /i C:\A10CSS\A10CSS\bin\Debug\OOALC.CSS.A10.A10CSS.dll
>
> from a command window gives the following error since moving to Visual
> Studio 2005:
>
> "Failure adding assembly to the cache: Unknown Error"
>
> I can drag the strong named dll to the GAC and and it is successfully
> installed into the GAC.
>
> Any Ideas why I get the error in .NET 2.0?
>
> --
> <_/\_>
Author
1 Dec 2006 2:45 PM
RapidFireBill
I went to Control Panel->Administrative Tools->Computer Management->System
Tools->Event Viewer and looked at the 3 logs. I didn't see any for the time I
generated the error. Am I looking in the right place?
--
<_/\_>


Show quote
"William Sullivan" wrote:

> Have you checked the system logs?  Unknown error isn't much to go on...
>
> "RapidFireBill" wrote:
>
> > The command:
> >
> > gacutil /i C:\A10CSS\A10CSS\bin\Debug\OOALC.CSS.A10.A10CSS.dll
> >
> > from a command window gives the following error since moving to Visual
> > Studio 2005:
> >
> > "Failure adding assembly to the cache: Unknown Error"
> >
> > I can drag the strong named dll to the GAC and and it is successfully
> > installed into the GAC.
> >
> > Any Ideas why I get the error in .NET 2.0?
> >
> > --
> > <_/\_>
Author
1 Dec 2006 2:56 PM
William Sullivan
Unfortunately, yes.  The only other suggestion I have is to go to
blogs.msdn.com and look for entries of MS employees who work on low level
..NET stuff (like the CLR, debugging, etc).  Find a couple and send them
emails on their blogs.  You'll get a response in a couple days.  I've found
that MS employees are pretty good about helping developers who have reached
the end of their ropes...

Show quote
"RapidFireBill" wrote:

> I went to Control Panel->Administrative Tools->Computer Management->System
> Tools->Event Viewer and looked at the 3 logs. I didn't see any for the time I
> generated the error. Am I looking in the right place?
> --
> <_/\_>
>
>
> "William Sullivan" wrote:
>
> > Have you checked the system logs?  Unknown error isn't much to go on...
> >
> > "RapidFireBill" wrote:
> >
> > > The command:
> > >
> > > gacutil /i C:\A10CSS\A10CSS\bin\Debug\OOALC.CSS.A10.A10CSS.dll
> > >
> > > from a command window gives the following error since moving to Visual
> > > Studio 2005:
> > >
> > > "Failure adding assembly to the cache: Unknown Error"
> > >
> > > I can drag the strong named dll to the GAC and and it is successfully
> > > installed into the GAC.
> > >
> > > Any Ideas why I get the error in .NET 2.0?
> > >
> > > --
> > > <_/\_>
Author
6 Dec 2006 9:22 PM
RapidFireBill
I found the answer on the internet:
Re: Failure adding assembly to the cache: Unknown Error
Each version of the .NET Framework has its own version of GACUTIL.exe which
must match the Framework version. And to keep things in line it should be the
same version of the Framework used to compile DLL.
The following line didn't work in the post build event command file.
gacutil /i "%2%5.dll"
The following line did work in the post build event command file.
"C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil" /i
"%2%5.dll"
--
<_/\_>


Show quote
"William Sullivan" wrote:

> Unfortunately, yes.  The only other suggestion I have is to go to
> blogs.msdn.com and look for entries of MS employees who work on low level
> .NET stuff (like the CLR, debugging, etc).  Find a couple and send them
> emails on their blogs.  You'll get a response in a couple days.  I've found
> that MS employees are pretty good about helping developers who have reached
> the end of their ropes...
>
> "RapidFireBill" wrote:
>
> > I went to Control Panel->Administrative Tools->Computer Management->System
> > Tools->Event Viewer and looked at the 3 logs. I didn't see any for the time I
> > generated the error. Am I looking in the right place?
> > --
> > <_/\_>
> >
> >
> > "William Sullivan" wrote:
> >
> > > Have you checked the system logs?  Unknown error isn't much to go on...
> > >
> > > "RapidFireBill" wrote:
> > >
> > > > The command:
> > > >
> > > > gacutil /i C:\A10CSS\A10CSS\bin\Debug\OOALC.CSS.A10.A10CSS.dll
> > > >
> > > > from a command window gives the following error since moving to Visual
> > > > Studio 2005:
> > > >
> > > > "Failure adding assembly to the cache: Unknown Error"
> > > >
> > > > I can drag the strong named dll to the GAC and and it is successfully
> > > > installed into the GAC.
> > > >
> > > > Any Ideas why I get the error in .NET 2.0?
> > > >
> > > > --
> > > > <_/\_>

AddThis Social Bookmark Button