473,671 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9180
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******@discu ssions.microsof t.com> wrote in message
news:87******** *************** ***********@mic rosoft.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\assemb ly "folder" (which is the GAC).

--
HTH,

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

"Terrance" <Te******@discu ssions.microsof t.com> wrote in message
news:87******** *************** ***********@mic rosoft.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\assemb ly "folder" (which is the GAC).

--
HTH,

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

"Terrance" <Te******@discu ssions.microsof t.com> wrote in message
news:87******** *************** ***********@mic rosoft.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%\Micros oft.NET\Framewo rk\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******** ******@TK2MSFTN GP09.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%\Micros oft.NET\Framewo rk\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\assemb ly "folder" (which is the GAC).

--
HTH,

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

"Terrance" <Te******@discu ssions.microsof t.com> wrote in message
news:87******** *************** ***********@mic rosoft.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
14868
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 check of the signature failed for assembly 'MyUtils.dll'. --------------------------- OK ---------------------------
1
430
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 assemblies into the global assembly cache 2) Use a developer tool called the Global Assembly Cache tool (Gacutil.exe) provided by the .NET Framework SDK.
3
1517
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 assembly used by my Web Services. Whatever I do, the old assembly is still used!! I try to unregister it, put the new version in the assembly cache nothing works. I also repplaced the dll fil in :\WINNT\Microsoft.NET\Framework\v1.1.4322 , same...
4
2351
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 versions, its loaded to my application and the old ones remain in memory. Do I understand right the whole process, so it causes memory leak?
1
1374
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
960
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 c:\inetpub\wwwroot and rebooted before reinstalling. I created a new virtual directory from within IIS (e.g. MyWebTest). Then I tried to create a new Visual C# ASP.NET Web Application pointing to the location http://localhost/MyWebTest. I get...
1
1383
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 assembly is placed in U drive, I have to use the Global Assembly Cache Tool in the client PC to add the assembly to the Global Assembly Cache of the client PC manually. Should I set something in the Global Assembly Cache Tool in the client PC in...
1
1067
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 my inherited forms saying that certain controls aren't declared when quite clearly they are. Often re-loading the solution will cure this problem. The ms knowledgebase indicates that this is because the assembly does not exist in the Global...
2
9881
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: article:http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx The next step was to see if I could still use the assembly in a .Net application. I added another project to the original solution was was able to create a reference to it through the projects tab, no problems so...
0
8392
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8597
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8669
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7428
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5692
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4403
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2809
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.