473,387 Members | 1,374 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,387 software developers and data experts.

Why can't I find a shared assembly I added to the GAC?

I created a shared assemble and dropped it into Windows\assembly. Browsing
this directory shows that it is in there and the properties looks as
expected. However, when I attempt to add this as a reference in the IDE, the
name is not showing.

Am I missing something?
Jul 21 '05 #1
3 1851
Bill,

How to display an assembly in the Add Reference dialog box
http://support.microsoft.com/?kbid=306149

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #2
Adding An assenbly into GAC, does not mean you can see it in "Add
References" dialog box in VS.NET. To make the shared assembly show up in the
"ADd Reference" dialog box, you need add a correspoding entry in Windows
registry:
"HKEY_LOCAL_MACHINE_SOFTWARE\Microsoft\.NETFramewo rk\AssemblyFolders"

But whether the assembly is shown in the "Add Reference" dialog box or not,
does not affect the use of the shared assembly. When you in a project that
need to reference the shared assembly, you can just point to the eference to
the shared assembly's project.

When a app that uses the shared assemly running, it alway looking for the
shared assemly in the GAC first, if not found then it will search other
places, as the app is configured.

"Bill" <nf*@nospam.com> wrote in message
news:uB*************@tk2msftngp13.phx.gbl...
I created a shared assemble and dropped it into Windows\assembly. Browsing
this directory shows that it is in there and the properties looks as
expected. However, when I attempt to add this as a reference in the IDE, the name is not showing.

Am I missing something?

Jul 21 '05 #3
Bill,

As the others have said, modifying the registry seems to be the prefered
way. However, this is not hte only way.. What I normally do, is place a copy
of the assembly in [$program files]\Microsoft.NET\Primary Interop Assemblies
directory.

This will add the assembly to the list in the reference screen, but your
code will actually use the version in the gac at runtime..

Hope this helps..

Cheers

"Bill" wrote:
I created a shared assemble and dropped it into Windows\assembly. Browsing
this directory shows that it is in there and the properties looks as
expected. However, when I attempt to add this as a reference in the IDE, the
name is not showing.

Am I missing something?

Jul 21 '05 #4

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

Similar topics

2
by: Aurimas Norkevicius | last post by:
I have two web projects and a class library in the same solution. Both web projects uses class library dll. How to create a web setup project to install class library into client computers gac and...
7
by: Random | last post by:
I have created a couple of DLL's in .NET that I want to use in a couple of my web projects, that will be running on the same web server. Instead of thn using the'bin' directory, what is the...
3
by: POL8985 | last post by:
The application is developed in ASP.Net with a SQL Server database. Essentially, the application uses a single shared Connection object for all users logged into the system. The connection...
3
by: Bill | last post by:
I created a shared assemble and dropped it into Windows\assembly. Browsing this directory shows that it is in there and the properties looks as expected. However, when I attempt to add this as a...
0
by: bcobra | last post by:
What am I doing wrong? the code: age Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"...
1
by: Tony Johansson | last post by:
Hello! If I select a private assembly in ILDASM I get a lot of information listed but if I select a shared assembly located at c:\window\assembly(GAC) I get nothing listed. So is this normal...
27
by: HKSHK | last post by:
Hello, I have this problem: I wrote some DLLs with VB.Net 2003 which I use with my programs. But I want to avoid that I have to go down to "DLL hell" and to copy all used dlls into each program...
0
by: DR | last post by:
CLR Shared Memory, C# DLL load How to share memory between CLR calls to the same C# dll? Is there some way to know in the C# dll when the dll is loaded? Is the dll reloaded each tiem a method is...
0
by: baretta | last post by:
Hi, When an assembly needs localization the recommended approach is creating a resource assembly that has the same name as the consuming assembly + ".resources" added to it, for instance...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.