473,657 Members | 2,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Gac to Private assembly

Hi,

I’m working on a project where I need to use the GaC to register Global
DLL's and a program uses the dll to perform tasks.
This works fine.

From those dll"s I want to use private assembly's (private dll's) that I do
not want to install in to the GaC.
Example: application (SharePoint) uses Gac Dll's they trigger actions that
uses my private Dll's.

My question is what the best way to do this within the same server, across a
network and across the internet or vpn?
Can I use them directly and how?
It is just some things that I been wondering for some time now but still
didn't find a good answer to.

I've been playing around with enterprise services and WCF.
I like WCF but do not know if this is the best framework to use in all 3
cases?
Within the WCF I got the thing working with wsHttpbinding but want to use
tcpBinding and netNamedPipeBin ding all the examples I find on the net are
http almost no tcp or namedpipe binding configurations so if someone could
point me in the right directions?

It is just a thing that I been wondering for some time now but still didn't
find a good answer to.

thanks

Aug 1 '08 #1
3 3910
On Aug 2, 3:05*am, steve <st...@discussi ons.microsoft.c omwrote:
I’m working on a project where I need to use the GaC to register Global
DLL's and a program uses the dll to perform tasks.
This works fine.

From those dll"s I want to use private assembly's (private dll's) that I do
not want to install in to the GaC.
Why do you not want to install them to GAC?
Example: application (SharePoint) uses Gac Dll's they trigger actions that
uses my private Dll's.
Well, GAC assemblies are an unfortnate but inevitable artifact of
SharePoint development, and most SP developers I've seen (myself
included) just end up putting it all into GAC - it's no worse than
having half of your stuff there, and half elsewhere.
Aug 2 '08 #2
Pavel,
>Why do you not want to install them to GAC?
Just to get a picture on how to work with those problems where you got a
private DLLapp with some classes and want to use them in let's say 3
applications (sharepoint, myapp1, myapp2) installed on different servers and
want to upgrade.

Also i want to now if you can debug in the gac?


"Pavel Minaev" wrote:
On Aug 2, 3:05 am, steve <st...@discussi ons.microsoft.c omwrote:
I’m working on a project where I need to use the GaC to register Global
DLL's and a program uses the dll to perform tasks.
This works fine.

From those dll"s I want to use private assembly's (private dll's) that I do
not want to install in to the GaC.

Why do you not want to install them to GAC?
Example: application (SharePoint) uses Gac Dll's they trigger actions that
uses my private Dll's.

Well, GAC assemblies are an unfortnate but inevitable artifact of
SharePoint development, and most SP developers I've seen (myself
included) just end up putting it all into GAC - it's no worse than
having half of your stuff there, and half elsewhere.
Aug 2 '08 #3
On Aug 2, 1:01*pm, steve <st...@discussi ons.microsoft.c omwrote:
Just to get a picture on how to work with those problems where you got a
private DLLapp with some classes and want to use them in let's say 3
applications (sharepoint, myapp1, myapp2) installed on different servers and
want to upgrade.
I don't see how installing or not installing into GAC would solve this
problem for you. You'll still have a copy of assembly on each server,
so upgrading will be just as tedious.
Also i want to now if you can debug in the gac?
You can do that as usual. If you mean loading debugging symbols, then
you'll have to copy the .pdb file into the GAC so that it's in the
same folder as your .dll - gacutil will not do it itself, but there
are similar 3rd-party utilities out there which copy .pdb on
installation as well.
Aug 3 '08 #4

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

Similar topics

1
2330
by: Daylor | last post by:
can shadowcopy be done with private assembly ? any info about how shadowcopy actually works ? when im compiling an assembly (while the assembly file is in use ), what i need to do ? change vertion ? change name of file ? how the appDomain will know to load the new assembly ?
2
672
by: Yang Liu | last post by:
Hi all, I have a .net windows application xx.exe, which reference a private assembly yy.dll, the property "local copy" of the yy.dll reference is automatically set to true, so the yy.dll will be copied to the output folder, which is the same folder as the xx.exe, that means when I deploy the application xx.exe, I must include the yy.dll to the same folder as the xx.exe exists in, but I want the folder that include the xx.exe(it's always...
1
741
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking aftwerwards with ILDASM at what is visible in those assemblies from a managed point-of-view I've noticed that: 1) for each managed and unmanaged C function (not C++ classes) I get a public managed static method (defined on a 'Global Functions' class) in the generated assembly with an export name of the form...
10
7360
by: Sunny | last post by:
Hi, I have an old problem which I couldn't solve so far. Now I have found a post in that group that gave me an idea, but I can not fully understand it. The problem is: I'm trying to use a Windows.Forms.UserControl in a COM environment, i.e. I want to host that control in a COM host. So far, so good, I can host it, but I can not reach the parent COM object from the control (Parent property is null :( ). I have stopped the control in the...
6
2581
by: Sathyaish | last post by:
Where is the private key to an assembly stored? The public key is stored in the manifest. All clients that reference the shared assembly, when compiled, store the public key _token_ into their manifests along with a hash value for the referenced assemblies. However, the private key is not distributed. From what I've read, it still remains with the author on his machine in the .snk file generated by the sn utility.
4
1827
by: _iycrd | last post by:
I have one class that is used as a low-level utility class by other classes in the same assembly. I'd like to make sure it's not visible outside the assembly. C# has modifiers 'public', 'private', and 'internal'. Internal relates to access within an assembly. Does C++ have anything analogous?
0
1725
by: Ratul | last post by:
Hi all! I'm writing a winforms test harness which lets me specify a subfolder from which to load a particular .net assembly dll. The idea is that there will be multiple subfolders, each having this dll. To ensure that there are no conflicts with similarly named assembly dll files, I'm am trying to load a subdirectory's dll into its own AppDomain. However when I call the AppDomain.CreateInstanceFromAndUnwrap method, it throws an...
2
2436
by: Sky | last post by:
Hello: I'm trying to make sense of snk files, when to use, under what conditions to regenerate new ones,...can someone take a look if these statemes make sense? And then the final questions at the end that they first statements bring up in my mind... a) Because two developers, unbeknownst to each other, can end up releaseing different dll's with the same name, one should sign an assembly with a unique tag. right?
1
3688
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 not seeing anything when using ILDASM on any shared assembly located in the GAC. Now to my second question: If I create a shared assembly from a private assembly and then use
26
2431
by: Zytan | last post by:
What happens if I do this: static byte MemberFunction() instead of: public static byte MemberFunction() I know I can't access it. But what does it default to? Private? I can't find any code that does this, and "static" docs don't say much. thanks
0
8384
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...
1
8499
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
8601
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7314
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
6162
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
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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 we have to send another system
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
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.