473,804 Members | 3,147 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2439
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.in fovis.co.uk> escribió en el mensaje
news:eH******** ******@TK2MSFTN GP12.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\Ass embly' 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*****@NOSPAM sogecable.com> wrote in
message news:Ol******** ******@TK2MSFTN GP10.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.in fovis.co.uk> escribió en el mensaje
news:eH******** ******@TK2MSFTN GP12.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.in fovis.co.uk> escribió en el mensaje
news:ee******** ******@TK2MSFTN GP14.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\Ass embly' 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
1365
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 managed wrapper for the dll. If the vendors dlls are put into the system32 folder the application works fine, but I am going to be deploying this across a number of client systems and copying code I don't own from the vedors application directory ...
6
8310
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 Visual Basic. But I'm migrating to Python, so I need a way to use the same dll, or a C library. I tried to access a dll created by myself on Visual Basic. The dll just have one function. It works perfect when using it on a VB project just
0
3232
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 converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
7
1396
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 drives between production and release machines. Thanks Regards
3
1343
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 necessary class declarations.
1
1298
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.. How do specify a link between obj,header and dll files. i dont have the source code.
2
1231
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 but IDE VS.NET2005 doesn't allow me to do the same. Although those were DLLs but VS still throws exception and prompt that only DLLs can be referred. I am worndering if it at all possible. Any help would be greatly helpful for me.
0
1063
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 visual c++ taht i would like to access //using c# platform.. bool WINAPI SCSYS_GetDeviceInfo( int Type, int Index, void *DevInf ) typedef struct _SCDeviceInfo
2
1817
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 'Scripting.DictionaryClass' to interface type 'Scripting.IDictionary'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{42C642C1-97E1-11CF-978F-00A02463E06F}' failed due to the following error: No...
0
9708
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10324
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
9161
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
7623
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
6857
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
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2998
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.