473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Adding Assembly to Global Assembly Cache

I currently experimenting with VB.net 2005 express edition. I was wondering
if anyone knows how to deploy an assembly to the global assembly cache using
the express edition? I tried using the GACUTIL.EXE from the VS.net 2003
edition but I get an UNKNOWN ERROR? Is there any other way to deploy the
assembly to the GAC?
--
TC
Feb 5 '06 #1
6 9154
Download and install the .NET 2.0 SDK and then use gacutil.exe for that to
put a 2.0 assembly into the GAC.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Terrance" <Te******@discussions.microsoft.com> wrote in message
news:87**********************************@microsof t.com...
I currently experimenting with VB.net 2005 express edition. I was wondering
if anyone knows how to deploy an assembly to the global assembly cache
using
the express edition? I tried using the GACUTIL.EXE from the VS.net 2003
edition but I get an UNKNOWN ERROR? Is there any other way to deploy the
assembly to the GAC?
--
TC

Feb 5 '06 #2
Drag and drop the file to the \Windows\assembly "folder" (which is the GAC).

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"Terrance" <Te******@discussions.microsoft.com> wrote in message
news:87**********************************@microsof t.com...
I currently experimenting with VB.net 2005 express edition. I was wondering
if anyone knows how to deploy an assembly to the global assembly cache
using
the express edition? I tried using the GACUTIL.EXE from the VS.net 2003
edition but I get an UNKNOWN ERROR? Is there any other way to deploy the
assembly to the GAC?
--
TC

Feb 5 '06 #3
Thanks for the information. I'll give both a try.
--
TC
"Kevin Spencer" wrote:
Drag and drop the file to the \Windows\assembly "folder" (which is the GAC).

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"Terrance" <Te******@discussions.microsoft.com> wrote in message
news:87**********************************@microsof t.com...
I currently experimenting with VB.net 2005 express edition. I was wondering
if anyone knows how to deploy an assembly to the global assembly cache
using
the express edition? I tried using the GACUTIL.EXE from the VS.net 2003
edition but I get an UNKNOWN ERROR? Is there any other way to deploy the
assembly to the GAC?
--
TC


Feb 6 '06 #4
Christopher Reed wrote:
Download and install the .NET 2.0 SDK and then use gacutil.exe for
that to put a 2.0 assembly into the GAC.
gacutil is part of the framework, it is not part of the SDK. If the OP
has the framework on the target machine then gacutil *should* be
available.
the express edition? I tried using the GACUTIL.EXE from the VS.net 2003
edition but I get an UNKNOWN ERROR? Is there any other way to deploy
the assembly to the GAC?


Don't use gacutil 'from' VS2003 because it is for v1.1. VB.NET Express
is v2.0 and will produce v2.0 assemblies. In fact the gacutil you use is
not from VS2003, it is actually part of the v1.1 framework installed by
VS2003 (ie, if you remove VS2003 but leave .NET 1.1 you will still be
able to call gacutil). Similarly VB.NET Express installs v2.0 of the
framework and you should use gacutil from that.

Basically you have a PATH issue. The install of VB.NET Expess should (I
don't know for sure because I've not used it, but it *should*) give you
a batch file that will set up the paths, and it should give you a
console short cut that will create a console that has the paths set.
Basically you need to call gacutil from
%windir%\Microsoft.NET\Framework\v2.0.50727.

Richard
--
Free .NET tutorials,
Fusion: http://www.grimes.demon.co.uk/workshops/fusionWS.htm
Security: http://www.grimes.demon.co.uk/workshops/securityWS.htm
Feb 14 '06 #5
While GACUTIL was part of the framework for 1.x, GACUTIL is only available
in the SDK for 2.0. This is at least true on two of my computers.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Richard Grimes [MVP]" <ri******@mvps.org> wrote in message
news:er**************@TK2MSFTNGP09.phx.gbl...
Christopher Reed wrote:
Download and install the .NET 2.0 SDK and then use gacutil.exe for
that to put a 2.0 assembly into the GAC.


gacutil is part of the framework, it is not part of the SDK. If the OP has
the framework on the target machine then gacutil *should* be available.
the express edition? I tried using the GACUTIL.EXE from the VS.net 2003
edition but I get an UNKNOWN ERROR? Is there any other way to deploy the
assembly to the GAC?


Don't use gacutil 'from' VS2003 because it is for v1.1. VB.NET Express is
v2.0 and will produce v2.0 assemblies. In fact the gacutil you use is not
from VS2003, it is actually part of the v1.1 framework installed by VS2003
(ie, if you remove VS2003 but leave .NET 1.1 you will still be able to
call gacutil). Similarly VB.NET Express installs v2.0 of the framework and
you should use gacutil from that.

Basically you have a PATH issue. The install of VB.NET Expess should (I
don't know for sure because I've not used it, but it *should*) give you a
batch file that will set up the paths, and it should give you a console
short cut that will create a console that has the paths set. Basically you
need to call gacutil from %windir%\Microsoft.NET\Framework\v2.0.50727.

Richard
--
Free .NET tutorials,
Fusion: http://www.grimes.demon.co.uk/workshops/fusionWS.htm
Security: http://www.grimes.demon.co.uk/workshops/securityWS.htm

Feb 14 '06 #6
I tried dragging and dropping and this did not work. I did download the SDK
2.0 and was able to run the gautil.exe and install the assembly successfully.
Thanks everyone for your help and suggestions.
--
TC
"Terrance" wrote:
Thanks for the information. I'll give both a try.
--
TC
"Kevin Spencer" wrote:
Drag and drop the file to the \Windows\assembly "folder" (which is the GAC).

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

"Terrance" <Te******@discussions.microsoft.com> wrote in message
news:87**********************************@microsof t.com...
I currently experimenting with VB.net 2005 express edition. I was wondering
if anyone knows how to deploy an assembly to the global assembly cache
using
the express edition? I tried using the GACUTIL.EXE from the VS.net 2003
edition but I get an UNKNOWN ERROR? Is there any other way to deploy the
assembly to the GAC?
--
TC


Feb 14 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: V. Srinivas | last post by:
Hi, I tried to install my strong named assembly to GAC. But I get the following error message - 1. If I drag and drop the assembly to GAC using windows explorer --------------------------- The...
1
by: Zeplynne | last post by:
There are several ways to deploy an assembly into the global assembly cache: 1) Use an installer designed to work with the global assembly cache. This is the preferred option for installing...
3
by: DDE | last post by:
Hi everybody, I developed an assembly common to all my Web Services, so I registered it and put it in the Global Assembly Cache. Now, I modified this assembly, but cannot succed to have this new...
4
by: Igor | last post by:
I have an application which loads assemblies from assembly cache. Assembly cannot be unloaded from memory without unloading the entire AppDomain, so every time I compile assemblies with new...
1
by: Ryan Moore | last post by:
I need to add an additional directory to search for assemblies other than the "bin" directory.... how do I do this in the web.config file?
7
by: JerryW | last post by:
I just reinstalled .NET 2003 (after repeated attempts to get ASP.NET Web Applications to work). I first did a complete uninstall of .NET 2003, .NET Framework 1.1, and IIS. I also completely deleted...
1
by: Ray | last post by:
Dear all, Now, I am using Global Assembly Cache to share assembly between server and clients. However, it seems that the server and clients use individual Global Assembly Cache. For example, the...
1
by: Robert Smith | last post by:
Hello, I have a problem with inherited forms. I have a project containing base forms and also in my main project I have forms that inherit these base forms. However I ofthen get random errors in...
2
by: Terry | last post by:
I am finally able to call my .Net object from a VB6 project (see posting 'Calling VB.Net classes from VB6', thanks to the reference Tony gave me to:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.