Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2008

Tip: Looking for answers? Try searching our database.

GAC question: Will a newer version be used for an application?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neo The One - 21 Mar 2005 06:07 GMT
I found several articles about GAC, but none of them can answer my question
(perhaps I am reading too fast :-)).

Suppose I have an application that is built against a shared assembly
version 1.0. That asembly is installed to GAC. Later a newer version of the
shared assembly is installed, say 1.1.

I want to know:

1. If the runtime will automatically select the newer version for the
application (not rebuilt).

2. Or do I need to rebuild it in order to use the newer version.

Thanks.
Richard Blewett [DevelopMentor] - 21 Mar 2005 09:23 GMT
1. No, will always unless instructed otherwise attempt to load the version the app was built against

2. You do not need to recompile to upgrade too the newer version

You are looking for the feature known as Version Redirection. You turn it on using configuration files which can be configured either at Application level (the app config file) publisher (the author of the shared component ships a version policy signed with the same key pair as the assembly - see Publisher Policy) or machine (configured in machine.config).

It is controlled by the <bindingRedirect> element in the config file which is under the <dependantAssembly> element

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

  I found several articles about GAC, but none of them can answer my question
(perhaps I am reading too fast :-)).

Suppose I have an application that is built against a shared assembly
version 1.0. That asembly is installed to GAC. Later a newer version of the
shared assembly is installed, say 1.1.

I want to know:

1. If the runtime will automatically select the newer version for the
application (not rebuilt).

2. Or do I need to rebuild it in order to use the newer version.

Thanks.
Arniec - 04 Mar 2008 23:23 GMT
I am interested in this, too.  If I want to propagate an update of a shared
assembly to several previously compiled projects, how do i do this?  Is this
what you are speaking about.  Where can I read about it if it is?

Many thanks
Signature

Arnie

> 1. No, will always unless instructed otherwise attempt to load the version the app was built against
>
[quoted text clipped - 25 lines]
>  
>  Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.