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

Accessing dlls from gac

Hi

What are the advantages of storing ones class project dlls in gac? How can
one access these dlls?

Thanks

Regards
Nov 21 '05 #1
3 2416
The GAC is a deployment feature to allow DLLs to be shared among the
applications (but allowing versioning). If your DLLs are not shared, IMO
it's better to keep them private in the application's folder. The run-time
has a probing system to find and load DLLs:

How the Runtime Locates Assemblies
http://msdn.microsoft.com/library/de...assemblies.asp

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"John" <Jo**@nospam.infovis.co.uk> escribió en el mensaje
news:eH**************@TK2MSFTNGP12.phx.gbl...
Hi

What are the advantages of storing ones class project dlls in gac? How can
one access these dlls?

Thanks

Regards

Nov 21 '05 #2
Thanks for that. I do want to share my dll among several apps. So I have a
dll MyClass.dll in the 'C:\Windows\Assembly' folder. The sink file is
MyClass.snk. So how do I access functions in the MyClass.dll from my vb.net
apps?

Thanks

Regards
"Carlos J. Quintero [.NET MVP]" <ca*****@NOSPAMsogecable.com> wrote in
message news:Ol**************@TK2MSFTNGP10.phx.gbl...
The GAC is a deployment feature to allow DLLs to be shared among the
applications (but allowing versioning). If your DLLs are not shared, IMO
it's better to keep them private in the application's folder. The run-time
has a probing system to find and load DLLs:

How the Runtime Locates Assemblies
http://msdn.microsoft.com/library/de...assemblies.asp

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"John" <Jo**@nospam.infovis.co.uk> escribió en el mensaje
news:eH**************@TK2MSFTNGP12.phx.gbl...
Hi

What are the advantages of storing ones class project dlls in gac? How
can one access these dlls?

Thanks

Regards


Nov 21 '05 #3
The .snk file is not a "sink" file (AFAIK) but the acronym of Strong Name
Key, which is the file used to sign the assembly.

To access MyClass.dll from your VS.NET project, just add a reference to it
(References node of the Solution Explorer), Add Reference context menu,
browsing it in your file system. During development, the Dll should reside
in some folder outside the GAC (the GAC is only a deployment feature, not a
development feature). When referenced, the dll will be copied to the "bin"
output folder of your .NET app, to be located by the app at run time. At
deployment time, since it will be in the GAC, it does not need to be along
with the app executable.
--
Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
"John" <Jo**@nospam.infovis.co.uk> escribió en el mensaje
news:ee**************@TK2MSFTNGP14.phx.gbl...
Thanks for that. I do want to share my dll among several apps. So I have a
dll MyClass.dll in the 'C:\Windows\Assembly' folder. The sink file is
MyClass.snk. So how do I access functions in the MyClass.dll from my
vb.net apps?

Thanks

Regards


Nov 21 '05 #4

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

Similar topics

4
by: BobM | last post by:
I am running a client based application written in C#. As part of the deveopment I am utilizing a set of dlls which is part of a vendors application (not written in .Net). So I have written a...
6
by: dcrespo | last post by:
Hi to all, Can someone give me lights on how can I deal with dlls from python? My main purpose is to get access to a Unitech PT600 Bar Code system. I have the dll that works fine through...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
7
by: John | last post by:
Hi I have a class dll which I would ideally like to reside in \\ folder. My question is; How are my vb.net apps to reference and use this dll specially since the \\ folder can reside on different...
3
by: Dave | last post by:
I've seen at least one article on this: How to access classes, etc. managed-to-unmanaged. I can't find it. Any tricks or pointers? I guess the class name won't get munged but I'm not clear about...
1
by: SUJIE | last post by:
Hi all, I have few header, obj and dlls of c++ program. Now i need to instantiate a class and access its objects. though i could include the header, i am not able to link to the dlls.. ...
2
by: Amit Bhatnagar | last post by:
Hi, We have couple of assemblies developed in framework 2.0, we need to include them in project reference in our one of the application which was dewveloped in framework 1.1. I trie to ad them...
0
by: wizkid | last post by:
hi everyone.. Im having trouble in accessing an api from c++ dll using c# platform.. I would like to retreive data from this api... I think im lost pls help me... //this is the api created from...
2
by: Mittalswati | last post by:
Hi All I am getting the below mentioned error while accessing the page which uses VB.Net Dll ,Please look in to the matter and suggest some solution Unable to cast COM object of type...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.