G
Guest
Hi all
I'm building an application that contains a dll that will be used by several
other applications.
The dll is installed in the GAC, to make it easy for everyone to find it.
When my application is upgraded, I'm also installing a policy in the GAC so
any call to the old dll is redirected to the new one.
My problem is the following scenario;
1) My.dll 1.0.0.0 is installed in the GAC
2) My.dll is upgraded to 1.1.0.0 (replaces the previous version in the GAC)
policy.1.0.My.dll is installed in the GAC, redirecting 1.0.0.0 to 1.1.0.0
3) My.dll is upgraded to 1.2.0.0 (replaces the previous version in the GAC)
policy.1.1.My.dll is installed in the GAC, redirecting 1.1.0.0 to 1.2.0.0
After step 3, when an application is trying to use My.dll version 1.0.0.0,
it only gets redirected to My.dll version 1.1.0.0 and not to 1.2.0.0 which I
wanted.
Isn't it possible to use version redirection multiple steps?
Do I need to add a new policy AND update my old policys everytime I upgrade
the dll?
Thanks!
/Fredrik
I'm building an application that contains a dll that will be used by several
other applications.
The dll is installed in the GAC, to make it easy for everyone to find it.
When my application is upgraded, I'm also installing a policy in the GAC so
any call to the old dll is redirected to the new one.
My problem is the following scenario;
1) My.dll 1.0.0.0 is installed in the GAC
2) My.dll is upgraded to 1.1.0.0 (replaces the previous version in the GAC)
policy.1.0.My.dll is installed in the GAC, redirecting 1.0.0.0 to 1.1.0.0
3) My.dll is upgraded to 1.2.0.0 (replaces the previous version in the GAC)
policy.1.1.My.dll is installed in the GAC, redirecting 1.1.0.0 to 1.2.0.0
After step 3, when an application is trying to use My.dll version 1.0.0.0,
it only gets redirected to My.dll version 1.1.0.0 and not to 1.2.0.0 which I
wanted.
Isn't it possible to use version redirection multiple steps?
Do I need to add a new policy AND update my old policys everytime I upgrade
the dll?
Thanks!
/Fredrik