Samer Ibrahim's Blog

The Samer I Warrior on battles with .NET

Sponsors

Lists/Forums/Etc.

Which Blogs do I read?

Global Assembly Cache (aka GAC) is a Misnomer: How "global" is it?

In every .NET programmer's life, he/she must come to terms with (at least one would hope) the Global Assembly Cache, aka the GAC.  Simply put, the GAC is place for strongly named .NET DLLs to be placed so that they may be shared across multiple applications.  This provides developers a way to place their DLL once on a machine and have multiple applications using it without the fear of name conflicts or problems with different versions of the DLL.  In theory, the GAC should also help avoid Windows programmers every having to remember the days of “DLL Hell” although the term “Assembly Hell” has already been dubbed.

Problem is how global is the GAC anyway?  Well there's a simple answer to that question; not global at all.  The GAC is only appropriate for machine-wide distributions of DLLs which still makes it a problem for deployment on a enterprise-wide level.  In some ways I think that the Global Assembly Cache was named as such because Microsoft is still not over their fixation with workstations being isolated.  In today's work place environment however calling anything that only scopes a single workstation “global” is a major lack of understanding of what is going on around you.  Maybe I'm paying too much attention to a name which maybe a marketing department made up but in truth this leads to the bigger issue of deployment. 

How can one deploy an assembly network-wide?  Bad new is it's not “built in”; good news is it's possible albeit jumping through some serious hoops.  I think this is something that Microsoft should really consider further development in.  Enterprise-wide deployment doesn't seem to be a forte of the Windows platform in general but I think it's in .NET's best interest to find a way around it.  Most companies with a reasonable sized network would prefer single point of deployment rather than having to contend with deploying DLLs to each and every machine.  .NET doesn't make it easy to deploy your shared DLLs to a shared network drive where they can truly be more global.

This also brings me to the point that the publisher policy that .NET enforces seem somewhat flawed.  Who should have the final say in what version of a DLL which I wrote is used by an application, me or the application developer?  While I can argue both sides of the coin, I think the real answer is it depends.  If I'm using a third party DLL and I don't want to break my application, I should be able to use any version of the DLL I damn well please.  If I want to take the risk of having using a buggy old version well that's my prerogative.  Maybe I'm not using any feature effected by the bug fix and maybe I just don't have the time to get my code to work with the new version.  But what about the corporate world?  If one team releases a new version of Foo.DLL which other developers in the enterprise use, shouldn't they have the ability to say "you can't use my old DLL any longer"?  A good example of the need for this is if the new Foo.DLL now enforces something such as a fix to a bug that runs the possibility of bringing the network down.  This issue came to mind when I first read Applied Microsoft .NET Framework Programming by Jeffrey Richter (if you haven't read it yet stop reading my blog and go buy yourself a copy).  At the time I thought “oh well it doesn't effect me” and moved on but I think I'm now seeing why I had to reread the publisher policy section to believe that the author of a DLL had no power in this matter.

These are arenas which I now consider to be a strong weakness in .NET and issues which are important for Microsoft to address.  For .NET to ever be a real enterprise application contender deployment and policy issues cannot be thought of as secondary.  Smart clients are not the solution for everything and neither are web apps.

Posted: Mar 11 2004, 09:29 PM by SamerEyeWarrior | with 53 comment(s)
Filed under:

Comments

Jalil Vaidya said:

The Windows Installer has install-on-demand feature which can provide new version of the assembly at runtime. However, I am not sure if the loader will check for newer version before it checks GAC for an assembly. Maybe someone more knowledgeable can throw some light on this :-)
# March 11, 2004 11:17 PM

TrackBack said:

# March 22, 2004 10:56 PM

Anthony DeRosa said:

What is the answer to the question presented above, "How can one deploy an assembly network-wide?"? I want to deploy an assembly at the enterprise level. How can I?
# April 28, 2004 11:14 AM

TrackBack said:

# April 29, 2004 8:34 PM

TrackBack said:

# May 2, 2004 8:04 PM

billie said:

I guess we shall see as time goes on how click once fairs.

# July 9, 2007 11:59 AM

Christopher P. Kile said:

The documentation I have seen seems to state that to make the applications that are using a particular version of an assembly, you must deploy a new image with an identical version and kill the old image.  It's brute force, but it works.  Documentation on the current version must reflect the changes.  This should be done rarely and only in the case of a critical fix.

If you think about it, why force the apps to use a new version, when what you want is for them to use a particular image, whatever label it happens to have?

I'm hoping to actually learn the process of replacing a current version image in the next few days.  Wish me luck :)

# December 4, 2007 11:59 PM

beedofonda said:

best for you  for gift   and get big save

# December 28, 2011 10:19 PM

biamscatalina said:

I am sure you will love <a href=guccioutlet.yolasite.com/>gucci outlet</a>  for less    and get big save

# January 6, 2012 2:40 PM

Quomsprincess said:

buy a <a href=guccimirror.eklablog.com/>gucci mirror</a>  with low price   suprisely

# January 10, 2012 3:13 PM

Quomsshana said:

purchase <a href=aimersoft-dvd-to-iphone-converte.weebly.com/>aimersoft dvd to iphone converter</a>   and get big save    and check coupon code available

# February 3, 2012 10:18 PM

giants jersey said:

Following the upcoming royal wedding between ommoner?Kate Middleton and United Kingdom Prince William, the media coverage about this event goes everywhere.

# September 24, 2012 4:07 PM

Mitolors said:

for <a href="www.alldallascowboysjerseys.com/">dallas cowboys jerseys for cheap</a>   for promotion code  

# November 7, 2012 7:27 PM

SyncCemy said:

must check <a href="www.chanel-outlet-bags.net/">chanel bags 2011</a>  online  

# November 22, 2012 7:54 PM

Mitolors said:

look at <a href="www.cheapcoach-handbags.net/">coach handbags</a>  with confident  

# November 23, 2012 12:39 PM

SyncCemy said:

to buy <a href="www.redwinelady.net/">kelly hermes</a>  with confident  

# December 4, 2012 1:33 PM

Mitolors said:

to buy <a href="www.redwinelady.net/">hermes kelly</a>  with confident  

# December 5, 2012 12:26 AM

north face osito jacket said:

Hi there, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam responses? If so how do you protect against it, any plugin or anything you can recommend? I get so much lately it's driving me insane so any support is very much appreciated.

# December 7, 2012 4:12 AM

モンクレール メンズダウンジャケットMAYAマヤ シャイニー迷彩柄 said:

I'm very happy to read this. This is the type of manual that needs to be given and not the random misinformation that is at the other blogs. Appreciate your sharing this greatest doc.

# December 9, 2012 8:34 AM

binsseve said:

I am sure you will love <a href="http://e--store.com/ ">coach online</a>  for gift   IJrUPsTF  <a href="http://e--store.com/ "> http://e--store.com/ </a>

# December 15, 2012 2:32 PM

cyncNask said:

check this link, <a href="http://e--store.com/ ">prada handbags outlet</a>  with confident   jZfpsHXT  <a href="http://e--store.com/ "> http://e--store.com/ </a>

# December 15, 2012 3:29 PM

cyncNask said:

get <a href="http://e--store.com/ ">prada online outlet</a>  suprisely   OrYbxSYy  <a href="http://e--store.com/ "> http://e--store.com/ </a>

# December 16, 2012 9:18 AM

Feenepes said:

buy <a href="http://e--store.com/ ">prada outlet</a>  online   WwXvTNrp  <a href="http://e--store.com/ "> http://e--store.com/ </a>

# December 16, 2012 5:38 PM

Thundfut said:

click <a href="http://e--store.com/ ">louis vuitton online</a>   to take huge discount   pLvfFnYu  <a href="http://e--store.com/ "> http://e--store.com/ </a>

# December 16, 2012 6:41 PM

emitlews said:

you must read <a href="http://e--store.com/ ">coach online outlet</a>   for promotion code   JHRarmTb  <a href="http://e--store.com/ "> http://e--store.com/ </a>

# December 16, 2012 6:49 PM

binsseve said:

click <a href="http://e--store.com/ ">coach purse outlet</a>   and get big save   GgHOQmBQ  <a href="http://e--store.com/ "> http://e--store.com/ </a>

# December 18, 2012 11:59 AM

GotteGam said:

look at <a href="http://e--store.com/ ">louis vuitton handbags outlet</a>   and get big save   VNtOyenf  <a href="http://e--store.com/ "> http://e--store.com/ </a>

# December 18, 2012 6:04 PM

GyncTund said:

check <a href="http://e--store.com/ ">lv online</a>  for less   YTuThzDk  <a href="http://e--store.com/ "> http://e--store.com/ </a>

# December 18, 2012 6:30 PM

Priscimi said:

check <a href="http://e--store.com/ ">gucci shop online</a>  , just clicks away   YkjEjQPk  <a href="http://e--store.com/ "> http://e--store.com/ </a>

# December 20, 2012 11:34 AM

Anedenaw said:

check this link, <a href="http://e--store.com/ ">gucci online shop</a>  , for special offer   dtgjQQKq  <a href="http://e--store.com/ "> http://e--store.com/ </a>

# December 21, 2012 6:27 AM

Sheenous said:

must check <a href="http://e--store.com/ ">outlet louis vuitton</a>  to your friends   FxxZdetp  <a href="http://e--store.com/ "> http://e--store.com/ </a>

# December 24, 2012 6:29 PM

Stevenson said:

I every time used to read paragraph in news papers but now as I am a user of

net therefore from now I am using net for articles,

thanks to web.

# January 17, 2013 7:36 PM

christian louboutins on sale said:

So now that we're all aware of the problems of Wikipedia, who's going to start up and run the well-administered classical/art music alt-Wikipedia? Seems to be a need for it. Besides the usual written material, it could include scores (like IMSLP, except with better standards), sound files, composer work lists, discographies. There might even be a way to include useful volatile material, like lists of upcoming performances. Basically everything CM-related that is possible to put online should be found there, or linked to it. It could be great, and also serve as a demonstration of better wikipedic governance.

# January 24, 2013 9:39 PM

Fedysync said:

get <a href=" ">fake chanel bags</a>  jBkuZWjI  [URL=]chanel handbags outlet[/URL] suprisely   WAqwYIdD  <a href=" ">  </a>

# February 9, 2013 6:07 PM

econvina said:

buy <a href=" ">fake chanel bags</a>  fNqZOJBj  [URL=]outlet chanel[/URL] at my estore   IRxnXddp  <a href=" ">  </a>

# February 9, 2013 11:48 PM

ribloomy said:

you love this?  <a href=" ">cheap chanel handbags</a>  LzDQQIGX  [URL=]chanel online store[/URL] , for special offer   ZsQaZpVN  <a href=" ">  </a>

# February 10, 2013 8:19 PM

Voiftlok said:

order an <a href=" ">cheap chanel</a>  IbqmrAQL  [URL=]chanel bags outlet[/URL] , for special offer   RQELKFWB  <a href=" ">  </a>

# February 11, 2013 11:33 PM

NuncCurf said:

must check <a href=" ">fake chanel bags</a>  uAQGkXxG  [URL=]fake chanel handbags[/URL]  to take huge discount   SOHgLoNT  <a href=" ">  </a>

# February 16, 2013 9:11 PM

unurnmut said:

you love this?  <a href=" ">chanel online shop</a>  gLTUDLZx  [URL=]fake chanel[/URL] online shopping   YFOXYSLA  <a href=" ">  </a>

# February 17, 2013 2:10 AM

survivalgear said:

Tricks for Cramming camping gear into a real threat to your hiking boots, don the bug repellent, and desserts too.  <a href="http://survival-gear.info" title="">survival kits</a> Water will be people who are committed to having a basic 2 person tent is ideal.

# February 26, 2013 8:04 AM

Mandyrxh said:

<strong><a href="www.michaelkorsouth.com/" title="Michael Kors outlet">Michael Kors outlet</a></strong> qoqnevqx

# March 8, 2013 4:04 AM

Soileau said:

Thanks for another excellent post. Where else may just anybody get that type of info

in such a perfect means of writing? I have a presentation subsequent week,

and I am on the look for such information.

# March 9, 2013 6:55 AM

Ocampo said:

Asking questions are actually good thing if you are not understanding

something totally, except this post gives fastidious understanding

even.

# March 16, 2013 12:46 PM

Mandypfh said:

<strong><a href="www.michaelkorsouth.com/" title="Michael Kors outlet">Michael Kors outlet</a></strong> kbavuxuu

# March 21, 2013 10:44 AM

Schwab said:

Hi, i read your blog from time to time and i own a similar one and i was just wondering if you get a lot

of spam responses? If so how do you stop it, any plugin or anything you can recommend?

I get so much lately it's driving me insane so any assistance is very much appreciated.

# March 25, 2013 1:24 AM

Manson said:

Everything is very open with a really clear description of the challenges.

It was definitely informative. Your site is useful. Many thanks for sharing!

# March 30, 2013 3:43 AM

http://www.deelsonheels.com/$2099_Dual_Air_Cushioned_Shoe_Lifts/p133745_317500.aspx said:

Effortless read, cannot get sufficient wish there are more like this. will like this particular post on facebook.

# April 1, 2013 12:42 PM

Girard said:

Oh my goodness! Incredible article dude! Thanks, However I am encountering issues

with your RSS. I don't know the reason why I cannot subscribe to it. Is there anybody else having identical RSS issues? Anybody who knows the solution will you kindly respond? Thanks!!

# April 4, 2013 10:06 PM

Beckwith said:

You can certainly see your enthusiasm within the work you write.

The world hopes for even more passionate writers such as you who aren't afraid to say how they believe. All the time follow your heart.

# April 5, 2013 7:44 PM

Merrill said:

We're a group of volunteers and starting a new scheme in our community. Your website provided us with valuable info to work on. You've done an impressive job and our

whole community will be grateful to you.

# April 5, 2013 10:18 PM

Pendleton said:

Genuinely no matter if someone doesn't be aware of after that its up to other viewers that they will assist, so here it happens.

# April 25, 2013 6:45 PM

http://law1949.com/forum.php?mod=viewthread&tid=13643146 said:

Thanks for this wonderful article. One other thing is that most digital cameras arrive equipped with any zoom lens that enables more or less of a scene to be included by simply zooming' in and out. These changes in focus length are usually reflected within the viewfinder and on large display screen right on the back of the particular camera.

# May 10, 2013 5:35 PM

http://www.ralphlauentopsale.us/ said:

For some, the paparazzi, using long range lens to take pictures of them on their yachts, can pose a privacy headache.So many of the souls now inhabiting the Earth Plane knew me in the beginning as "God made Human".

# May 19, 2013 9:04 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)