473,503 Members | 2,289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1862
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
2735
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
1901
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
4244
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
314
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
2354
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
3682
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
1807
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
1723
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
985
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
7207
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
7291
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
7357
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
7012
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
7468
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
3180
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
1522
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 ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.