Problem on Redirecting Assembly Versions at the Machine Level

T

Tham

Hi

I have two assemblies with the same name (e.g MyData.dll)
Both assemblies are strong name and have different version (one is 1.0.0.1
and the other is 1.0.0.2)
There are some applications that is using the old version.
I would like to these applications to use the new version without
recompiling the application.
I used the .NET Framework configuration tool to set the configured
assemblies.
I configured the assemblies binding policy so that the requested version
(1.0.0.1) is redirect to the new version (1.0.0.2).
However, the appplications is still using the old version assembly.
I am using .NET 1.1 on WinXP SP2 machine.

Can anyone advice me what's went wrong.
Appreciate your help.


Tham
 
M

Michael Nemtsev

Hello Tham,

Did u try as described there http://msdn2.microsoft.com/en-us/library/7wd6ex19(VS.71).aspx
and there http://msdn2.microsoft.com/en-us/library/dz32563a(vs.71).aspx ?

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

T> have two assemblies with the same name (e.g MyData.dll)
T> Both assemblies are strong name and have different version (one is
T> 1.0.0.1
T> and the other is 1.0.0.2)
T> There are some applications that is using the old version.
T> I would like to these applications to use the new version without
T> recompiling the application.
T> I used the .NET Framework configuration tool to set the configured
T> assemblies.
T> I configured the assemblies binding policy so that the requested
T> version
T> (1.0.0.1) is redirect to the new version (1.0.0.2).
T> However, the appplications is still using the old version assembly.
T> I am using .NET 1.1 on WinXP SP2 machine.
T> Can anyone advice me what's went wrong.
T> Appreciate your help.
 
T

Tham

Hi Michael

I think I know the reasons.
It is because I have set the AssemblyCulture attribute in the
AssemblyInfo.cs.
e.g. [assembly: AssemblyCulture("TestCulture")]
Although the compilation of the assembly does not show any error and
warning, when compiling the application that reference this assembly, a
warning is issued.

warning CS1607: Assembly generation -- Referenced assembly 'MyData' is a
localized satellite assembly

Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top