473,385 Members | 1,912 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.

Versioning problem

Hi
I am building a .NET Windows application using C#. In my application I am referring to shared library which updates very often(only revision change). Now I want my executable to load latest version of the shared library available in GAC
In short, If I have a shared assembly with version 1.0.0.1 and 1.0.0.2 in GAC and my application was built referring to version 1.0.0.1 ,it should automatically refer to the new version available in GAC i.e. 1.0.0.2 without rebuilding the application
Is this possible in .NET? I referred to an article in codeproject.com which says this can be done but I could not do
The following is the description default verisioning found in the article

Understanding the Default Version Polic

As mentioned earlier in the chapter, if a client is referencing a shared assembly, the major and minor versions must be identical if the bind is to succeed. However, the .NET runtime binds to a given assembly if the assembly reference differs by the revision or build numbers. This behavior is termed the default version policy and is used to ensure that a client always gets the latest and greatest service release (i.e., bug fix) of a given assembly. Thus, if the client's manifest explicitly requests version 1.0.0.0, but the GAC has a newer version by specifying a QFE (such as 1.0.2.2), the client automatically receives the most recent fix. In this way, a client application is guaranteed that the assembly that it is referencing is backward compatible, in addition to being as bug-free as possibl

The link of the article is as follows
http://codeproject.com/books/1893115593_6.as

Can anybody help me out

Thanks in Advance.

Sampat.
Nov 22 '05 #1
1 2046
Sampat Dixit <Sa*********@ccipl.com> wrote in message news:<B4**********************************@microso ft.com>...
Hi,
I am building a .NET Windows application using C#. In my application I am
referring to shared library which updates very often(only revision change).
Now I want my executable to load latest version of the shared library
available in GAC.
In short, If I have a shared assembly with version 1.0.0.1 and 1.0.0.2 in
GAC and my application was built referring to version 1.0.0.1 ,it should
automatically refer to the new version available in GAC i.e. 1.0.0.2 without
rebuilding the application.
Is this possible in .NET? I referred to an article in codeproject.com
which says this can be done but I could not do.
...
Can anybody help me out.

Thanks in Advance..

Sampat.

Sampat,

I don't know the answer to your problem for sure - but it sounds to me
like the problem is, because the application was linked with 1.0.0.1
and 1.0.0.1 is still available (in the GAC) it will use it - if you
remove 1.0.0.1 and leave 1.0.0.2 in the GAC do you see the expected
behaviour? I'm interested in your results because I may well have a
similar problem soon!

It's interesting to hear that the Major/Minor versions are all that
*NEED* to match - this actually makes things better for me, and goes
part way to explaining why Microsoft view this as a way out of 'DLL
hell', so long as you can ensure that only *ONE* version (the latest)
is in the GAC.

Speaking of which, anyone know how to update the GAC outside of an
MSI install? GacInstall and GacRemove look tempting - but I have
heard that they're not quite all they seem... anyone?
Nov 22 '05 #2

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

Similar topics

4
by: Sandman | last post by:
Hello - I suppose this group could be suitable for my questions... I am interested in a versioning system that works good for web authoring. I don't know what differences web development might...
0
by: Ken Durden | last post by:
I'm working on a client-server application where the client is controlling two devices (aka servers) which both implement the same interface contract. We have a set of about 4 assemblies which...
0
by: SH | last post by:
We have a web site on our server and the site has got COM+ components written by us. Problem: We are trying to launch multiple websites for the same code with different URLs, but the problem is we...
3
by: Alex Stevens | last post by:
Hi All, I'm trying to get around a problem that I'm having with versioning. I have a DLL called Control.dll and it is at version 1.0. I choose to inherit from one of the controls, and build my...
2
by: PatrickSA | last post by:
Hi, Am new to web services, so apologies for the basic nature of the question - and apologies in advance if this is the wrong newsgroup. We're building a new web service and I'm looking around...
1
by: MrNobody | last post by:
Is there any way to have .NET IDE to handle versioning for your application? If for example you want a certain build number to increment every time you build your project? Would need this version...
3
by: Modica82 | last post by:
Hi all, Does anyone have any views/information on the best way to version web services. I am writing a proposal on how the company should handle versioning of its web services and would like...
1
by: zacks | last post by:
Am using VB.NET 2005. I have a solution that has four projects. Two projects are standard windows applications. One is a class library that is shared by the two windows application projects, it...
1
by: betbubble | last post by:
I replicate (transactional replication) my data entry database to a read-only database. Both are SQL 2000+SP4. The web server reads the read-only database. At times, there will be lots of changes...
1
by: Coaster | last post by:
orig ref here http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/ff29cc370678911d/c0db5b7e3da283b9?lnk=st&q=gac+assembly+new+version&rnum=7#c0db5b7e3da283b9...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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...
0
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,...
0
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...

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.