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

Updating GAC-based Assemblies: How to handle versioning?

I've built a core set of assemblies that are shared by multiple ASP.NET web
applications on a production server. These assemblies are updated quite
frequently, as I am continually adding to and improving the core
functionality of my applications.

Up until now, I've used a batch script to copy updated assembly versions to
the \bin directory for each application. However, given that all
applications always use the latest version of the assemblies, the GAC is a
perfect place to locate them rather than an identical copy of each assembly
in every applications \bin.

My problem is how to handle the versioning so that updating the assemblies
(which could happen as often as daily) is a simple operation. Ideally, I
would copy the assemblies to the production server and run a batch file to
install them in the GAC.

My questions become:

If I don't change the version numbers each time (i.e. the version number is
always 2.0.0.0), will the applications pick up the new version automatically?
Right now, that doesn't appear to be the case.

If I do change the version number, then I have to change the root web.config
file every time, maintain a publisher policy, or update the binding policy
every time, none of which I want to do.

What is the best solution here?
Oct 19 '06 #1
1 1592
You ahve to set up a policy for GAC objects. Even if you are compiling same
culture and same version, the assembly stored will have a different
signature and not automagically be updated. Through policies, like a
publisher policy, you can force an update to the newest version.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"Hone" <Ho**@discussions.microsoft.comwrote in message
news:C7**********************************@microsof t.com...
I've built a core set of assemblies that are shared by multiple ASP.NET
web
applications on a production server. These assemblies are updated quite
frequently, as I am continually adding to and improving the core
functionality of my applications.

Up until now, I've used a batch script to copy updated assembly versions
to
the \bin directory for each application. However, given that all
applications always use the latest version of the assemblies, the GAC is a
perfect place to locate them rather than an identical copy of each
assembly
in every applications \bin.

My problem is how to handle the versioning so that updating the assemblies
(which could happen as often as daily) is a simple operation. Ideally, I
would copy the assemblies to the production server and run a batch file to
install them in the GAC.

My questions become:

If I don't change the version numbers each time (i.e. the version number
is
always 2.0.0.0), will the applications pick up the new version
automatically?
Right now, that doesn't appear to be the case.

If I do change the version number, then I have to change the root
web.config
file every time, maintain a publisher policy, or update the binding policy
every time, none of which I want to do.

What is the best solution here?


Oct 19 '06 #2

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

Similar topics

0
by: some guy with a computer | last post by:
I can not get a custom httpHandler to fire using machine.config and an assembly in the GAC. It will not work if I move the assembly to the GAC, even though I have it referenced correctly and add...
0
by: Doug | last post by:
Hi, We are having an issue with policy files and the GAC. We have built a process where it will take a policy file dll and install it into the GAC. But a couple of things are occurring. One -...
3
by: Scott Vercuski | last post by:
Everyone, I've run into a problem using the GAC. I've created a DLL and put it in the GAC on our server. I've also created a webpage and referenced that same DLL with the "Copy Local" set to...
2
by: julien | last post by:
Hello, I read several articles about the GAC. Here is my understanding The GAC has 2 main purposes: a/ avoid having the same shared dll loaded several times by different programs b/ several...
2
by: julien | last post by:
Hello, I have one 2 more questions about the GAC: 1/If I had a dll to be shared in the GAC directory, will it be loaded when a program will try to find it? Or do I have to load it manually using...
7
by: Ludwig | last post by:
Hi, Current situation: a number of C++ applications installed on multiple computers, some of them are dependent of each other. Updates are installed manually. Question: automate these...
1
by: Diffident | last post by:
Hello All, I am trying to add an assembly to GAC but having difficult time figuring out the concept of GAC. This is what I am trying to do.... 1. Installed NUnit framework whose DLL...
4
by: Sridhar | last post by:
Hi, I have a question regarding the Global Assembly Cache (GAC) and Source Safe. We have some common dlls which we would like to put in GAC so that they can be used in different applications. We...
1
by: Tim F | last post by:
Problem: I'm receiving the error "File or assembly name XXXXX or one of its dependencies, was not found." when trying to execute code in an assmebly that has both a strong-name and has been...
0
by: strattonn | last post by:
I am trying to use a class I created in a SQL SSIS Script Object to do this I need to save it in the GAC. I created a strong name and copied it on the server to the assembly directory. Then I needed...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.