Hello Fredrik,
Did u provide the publisher policy with your new assemblies? http://msdn2.microsoft.com/en-us/library/7wd6ex19%28vs.71%29.aspx
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
"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
FP> Hi all
FP>
FP> I'm building an application that contains a dll that will be used by
FP> several
FP> other applications.
FP> The dll is installed in the GAC, to make it easy for everyone to
FP> find it.
FP> When my application is upgraded, I'm also installing a policy in the
FP> GAC so
FP> any call to the old dll is redirected to the new one.
FP> My problem is the following scenario;
FP>
FP> 1) My.dll 1.0.0.0 is installed in the GAC
FP>
FP> 2) My.dll is upgraded to 1.1.0.0 (replaces the previous version in
FP> the GAC)
FP> policy.1.0.My.dll is installed in the GAC, redirecting 1.0.0.0 to
FP> 1.1.0.0
FP> 3) My.dll is upgraded to 1.2.0.0 (replaces the previous version in
FP> the GAC)
FP> policy.1.1.My.dll is installed in the GAC, redirecting 1.1.0.0 to
FP> 1.2.0.0
FP> After step 3, when an application is trying to use My.dll version
FP> 1.0.0.0, it only gets redirected to My.dll version 1.1.0.0 and not
FP> to 1.2.0.0 which I wanted.
FP>
FP> Isn't it possible to use version redirection multiple steps?
FP> Do I need to add a new policy AND update my old policys everytime I
FP> upgrade
FP> the dll?
FP> Thanks!
FP> /Fredri
Fredrik Persson - 06 Sep 2007 14:52 GMT
Hi Michael
Yes, (at least) one publisher policy is included with the assembly.
I'm creating a msi using WiX, which installs my application, registers the
dll in the GAC and finally registers the publisher policy in the GAC.
What bugs me is that it seems that I need to include one policy-dll for each
major.minor-version that has been released earlier, when I'm creating a new
msi.
/Fredrik
"Michael Nemtsev" <Michael Nemtsev>, "MVP" wrote:
> Hello Fredrik,
>
[quoted text clipped - 39 lines]
> FP> Thanks!
> FP> /Fredrik
Michael Nemtsev, MVP - 07 Sep 2007 05:43 GMT
Hello Fredrik,
Yep, it is.
when u publish the new version it's better to provide the new published policy
for this
or update existed with the new redirection
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
"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
FP> What bugs me is that it seems that I need to include one policy-dll
FP> for each major.minor-version that has been released earlier, when
FP> I'm creating a new msi.
FP>