publisher policy in .NET 2.0 ?

Hi,

I'm having problems using publisher policy in .NET 2.0.
whereas I didn't in .NET 1.1

Scenario :
I have a version3.0 component against which a client is compiled.
Then creating version3.1 component and the policy-file.
(The policy-file states a binding-redirect from 3.0 to 3.1.)

I install both the policy-file and 3.1-component in the GAC, then run the client again but I get an error stating that the client doesn't find 3.1-component ?

I repeat : .NET 1.1, I didn't have any problems

Summary:
If I compile the client directly against 3.0-component then no problem
If I compile the client directly against 3.1-component then no problem
If I compile the client against 3.0-component but with the
policy-file in the GAC then crash
And i have verified the correctness of the policy-file !!!

What is wrong then ?
What has changed in .NET 2.0 ?

thanks
Chris

[944 byte] By [ChrisPeeters] at [2007-12-16]
# 1
Hi Chris,

I don't think anything should have changed in 2.0 in this area, unless if you're using a "*" or something in your config file.

Could you share the Fusion log viewer (fuslogvw.exe) for the component with the policy? You may need to change some of the options to get the log to show, and may or may not need to clear your IE offline cache.

rogertan at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2

Agreed -- the fusion log would be great to help solve the problem. (See Suzanne's blog Debugging Assembly Loading Failures on how to get this log if you're not certain).

Also, just for general information, when migrating from Everett to Whidbey and facing differences in loading behavior, you might want to check out Richard Lander's posts on the differences in the GAC:

  1. Processor Architecture
  2. Interop with the Everett GAC
  3. Binding order among the v1.x, v2.0 MSIL, and v2.0 Bitness GACs
  4. Shipping Everett and Whidbey Versions of the Same Code

-Shawn

ShawnFarkas-MS at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified