Gac to Private assembly

S

steve

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 netNamedPipeBinding 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
 
P

Pavel Minaev

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.
 
S

steve

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?
 
P

Pavel Minaev

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

about adding a assembly dll to the GAC 2
Determine if assembly is installed in the GAC 7
About private and shared assembly 1
using GAC 4
Why the GAC? 5
GAC hell 8
Installing Assembly in GAC 2
About GAC 2

Top