473,467 Members | 1,303 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Installing assembly to GAC

I just installed my assembly to the GAC using the GACUTIL and I can see it in the winnt\assembly folder. However, I am unable to see the assembly when I import it into the project in the using statement . It's in the GAC but not available to my project???

When I installed the assembly to the GAC I was a bit confused about this section in the assemblyinfo.cs file. My problem may reside in the key reference....

// "For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// For web projects, the project output directory is defined as
// %HOMEPATH%\VSWebCache\<Machine Name>\<Project Directory>\obj\<Configuration>."

In my assembly creation, I referenced it as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")].

Also, when I issued the gacutil command I picked the assembly in obj\release folder. I am not sure if that matters and still don't understand the purpose of the obj folder in the first place (that'll be another thread).

I cannot find my assembly in the GAC from either a console app or a web app.

Any help is appreciated!
Nov 16 '05 #1
6 1400
>However, I am unable to see the assembly when I import it into the project in the using statement .

Did you add a reference to it? That still has to be done (just like the default System, etc references), it just won't have to be
copied local to your project.

--
Adam Clauss
ca*****@tamu.edu

Nov 16 '05 #2
It is not listed in the .NET references section when I try to add a reference. This tells me that even though it is showing in the GAC, it must not really be there.....
Any other suggestions?

"Adam Clauss" wrote:
However, I am unable to see the assembly when I import it into the project in the using statement .


Did you add a reference to it? That still has to be done (just like the default System, etc references), it just won't have to be
copied local to your project.

--
Adam Clauss
ca*****@tamu.edu

Nov 16 '05 #3
My assembly is not listed in the .NET selection when I attempt to add a reference, which tells me that even though it appears in the GAC from file explorer - it really isnt there.....????

Any other suggestions?

"Adam Clauss" wrote:
However, I am unable to see the assembly when I import it into the project in the using statement .


Did you add a reference to it? That still has to be done (just like the default System, etc references), it just won't have to be
copied local to your project.

--
Adam Clauss
ca*****@tamu.edu

Nov 16 '05 #4
My assembly is not listed in the .NET selection when I attempt to add a reference, which tells me that even though it appears in the GAC from file explorer - it really isnt there.....????

Any other suggestions?

"Adam Clauss" wrote:
However, I am unable to see the assembly when I import it into the project in the using statement .


Did you add a reference to it? That still has to be done (just like the default System, etc references), it just won't have to be
copied local to your project.

--
Adam Clauss
ca*****@tamu.edu

Nov 16 '05 #5
Yeah... I'd say even though its there, it isn't "registered" properly. I'm about to head home from work, I'll look into it and see
if I can figure out why and write back.

--
Adam Clauss
ca*****@tamu.edu

"Chris Fink" <Ch*******@discussions.microsoft.com> wrote in message news:78**********************************@microsof t.com...
My assembly is not listed in the .NET selection when I attempt to add a reference, which tells me that even though it appears in the GAC from file explorer - it really isnt there.....????
Any other suggestions?

"Adam Clauss" wrote:
However, I am unable to see the assembly when I import it into the project in the using statement .


Did you add a reference to it? That still has to be done (just like the default System, etc references), it just won't have to be copied local to your project.

--
Adam Clauss
ca*****@tamu.edu

Nov 16 '05 #6
Chris Fink wrote:
My assembly is not listed in the .NET selection when I attempt to add a reference, which tells me that even though it appears in the GAC from file explorer - it really isnt there.....????

Any other suggestions?
See this thread:
http://groups.google.com/groups?thre...tngp13.phx.gbl


"Adam Clauss" wrote:

However, I am unable to see the assembly when I import it into the project in the using statement .


Did you add a reference to it? That still has to be done (just like the default System, etc references), it just won't have to be
copied local to your project.

--
Adam Clauss
ca*****@tamu.edu

--
mikeb
Nov 16 '05 #7

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

Similar topics

1
by: Dan | last post by:
Hi when installing a shared assembly into the GAC, do I have to check whether the GAC already have the assembly with the same strong name(name,version,publickeytoken and culture) before...
5
by: McGeeky | last post by:
Is it possible to install an assembly on a remote machine's GAC? I don't see an option for it using gacutil.exe -- McGeeky http://mcgeeky.blogspot.com
0
by: Ed | last post by:
Hi, I have to install a service in my PC which has been developed by my company. While installation the System.Reflection.ReflectionTypeLoadException exception is thrown. And the log is as...
7
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*"...
11
by: tshad | last post by:
I have a small Windows Service program that just has a timer on it and it built fine. I try to install it using InstallUtil and I get the following message: ...
2
by: J | last post by:
hi, I'm having a problem installing a service created in vb.net 2003 on a windows 2000 server. I have installed the service on a few XP machines with out any problems...but the 2 servers (win...
0
by: Anonieko Ramos | last post by:
Self Installing Service Enter a topic name to show or a new topic name to create; then press Enter .. Start by writing a service. This involves deriving a class from...
0
by: Dave O | last post by:
Has anyone had experience loading a previous version of an assemblie's settings when installing a newer version of the assembly? for example, the old assembly version is 1.0.0.0 and its settings...
0
by: job | last post by:
Mohamed Sharaf's has produced a Microsoft.Practices.EnterpriseLibrary production server installer: https://blogs.msdn.com/mohamed_sharafs_blog/archive/2005/09/18/470854.aspx Running the...
15
by: =?Utf-8?B?RWxpb3Ro?= | last post by:
I try to install Windows Services but it show this error during the installation process, "Insufficient System resources exist to complete the requested service." I created this Services in VB...
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
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...
1
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...
0
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...
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,...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.