473,322 Members | 1,409 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,322 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 2042
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.