GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  Microsoft.NET
Go To First  |  Previous Question  |  Next Question 
 Microsoft.NET  |  Question 24 of 38    Print  
Suppose I have a .net assembly version 1.0 in GAC now i want to update the version to 2.0
how can i do that. how can i update my previous version.

  
Total Answers and Comments: 3 Last Update: November 23, 2006     Asked by: KIRANEC205 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Raja
 

Hi,

Here, it comes the concept of publisher policy. If you assembly is updated to .. lets say 1.0 - 2.0 version then first we need to create one configuration file called publisher policy file. In this we will define the binding redirect element with old version and new version specified. Use al(assembly linker) tool to configure that users should redirect to new version assembly. Ex.

al /assembly:<assembly name> /out:<policy filename>.dll /Keyfile:<snk file name>

The above mentioned "al" syntax might be wrong. please refer online.

- Raj



Above answer was rated as good by the following members:
Ag2703
September 29, 2006 01:25:45   #1  
balaji        

RE: Suppose I have a .net assembly version 1.0 in GAC ...

Hai

I think because of versioning problem we have to create new assembly different version so that ur application automatically referes to updated assembly.


 
Is this answer useful? Yes | No
October 25, 2006 10:25:52   #2  
Manvendra        

RE: Suppose I have a .net assembly version 1.0 in GAC ...
Just migrate your project from 1.0 /1.1 to 2.0 compile it again. and assign it to GAC.
 
Is this answer useful? Yes | No
November 23, 2006 09:14:00   #3  
Raja        

RE: Suppose I have a .net assembly version 1.0 in GAC ...

Hi

Here it comes the concept of publisher policy. If you assembly is updated to .. lets say 1.0 - 2.0 version then first we need to create one configuration file called publisher policy file. In this we will define the binding redirect element with old version and new version specified. Use al(assembly linker) tool to configure that users should redirect to new version assembly. Ex.

al /assembly:<assembly name> /out:<policy filename>.dll /Keyfile:<snk file name>

The above mentioned al syntax might be wrong. please refer online.

- Raj


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape