Binding Policies Asp.Net



I have 2 GAC assemblies .Net 1.1 that I want to redirect to a newer version.
Under the .net MMC for both 2.0 and 1.1 I configured the assemblies to
redirect to new verion under binding policy. When my web application
(asp.net 2.) executes it gets a method not found on the GAC assembly which is
a 1.1.

I have enabled logging in fusion and for each of the GAC components I see
that it is being redirected to new version. If I recompile the web app to use
new version and remove binding policies the web works fine so I know its not
an issue with the new components.



Does anyone have any ideas on what the issue could be. Below is logging
information for the 2 assemblies

*** Assembly Binder Log Entry (11/14/2007 @ 7:47:24 AM) ***

The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User =
LOG: DisplayName = XXXXXXX, Version=1.1.2636.11335, Culture=neutral,
PublicKeyToken=96e47e858ecf46da
(Fully-specified)
LOG: Appbase = file:///D:/CMS2002Projects/InterECM/Web/
LOG: Initial PrivatePath = D:\CMS2002Projects\InterECM\Web\bin
LOG: Dynamic Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\interecm\325d865f
LOG: Cache Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\interecm\325d865f
LOG: AppName = b2752e82
Calling assembly : XXXXXXX, Version=1.0.2873.24211, Culture=neutral,
PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file:
D:\CMS2002Projects\InterECM\Web\web.config
LOG: Using host configuration file:
\\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Machine configuration policy file redirect found: 1.1.2636.11335
redirected to 1.1.5.0.
LOG: Post-policy reference: XXXXXX, Version=1.1.5.0, Culture=neutral,
PublicKeyToken=XXXXXXX
LOG: Found assembly by looking in the GAC.
LOG: Binding succeeds. Returns assembly from
C:\WINDOWS\assembly\GAC\XXXXX\1.1.5.0__96e47e858ecf46da\XXXXX.dll.
LOG: Assembly is loaded in default load context.


*** Assembly Binder Log Entry (11/14/2007 @ 7:47:24 AM) ***

The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User =
LOG: DisplayName = XXXXX, Version=1.1.2636.11335, Culture=neutral,
PublicKeyToken=96e47e858ecf46da
(Fully-specified)
LOG: Appbase = file:///D:/CMS2002Projects/InterECM/Web/
LOG: Initial PrivatePath = D:\CMS2002Projects\InterECM\Web\bin
LOG: Dynamic Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\interecm\325d865f
LOG: Cache Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\interecm\325d865f
LOG: AppName = b2752e82
Calling assembly : XXXXX, Version=1.0.2873.24211, Culture=neutral,
PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file:
D:\CMS2002Projects\InterECM\Web\web.config
LOG: Using host configuration file:
\\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Machine configuration policy file redirect found: 1.1.2636.11335
redirected to 1.1.5.0.
LOG: Post-policy reference: XXXXX, Version=1.1.5.0, Culture=neutral,
PublicKeyToken=96e47e858ecf46da
LOG: Found assembly by looking in the GAC.
LOG: Binding succeeds. Returns assembly from
C:\WINDOWS\assembly\GAC\XXXXX\1.1.5.0__96e47e858ecf46da\XXXXX.dll.
LOG: Assembly is loaded in default load context.





.



Relevant Pages

  • Re: Pb with the GAC
    ... Any idea of what decides the GAC lookup or not? ... v1.1 behaves differently then version 2.0 wrt how assemblies are located. ... Attempting application configuration file download. ...
    (microsoft.public.dotnet.general)
  • Re: Pb with the GAC
    ... Also, when looking at the 2.0 GAC my dll is present, while it is absent ... (list of assemblies obtained through control panel -> administrator ... Attempting application configuration file download. ...
    (microsoft.public.dotnet.general)
  • Re: Pb with the GAC
    ... This must be a pb of framework as my dll is framework 2.0, ... Also, when looking at the 2.0 GAC my dll is present, while it is absent ... v1.1 behaves differently then version 2.0 wrt how assemblies are located. ... Attempting application configuration file download. ...
    (microsoft.public.dotnet.general)
  • Re: Why are assemblies loading from the GAC?
    ... Or is there another configuration file I should look at? ... Because CLR start looking for assebmly from the GAC. ... S> put several assemblies in the GAC. ... S> I'd like to debug aren't getting loaded; ...
    (microsoft.public.dotnet.framework)
  • Re: Why are assemblies loading from the GAC?
    ... he is talking about the application configuration file. ... The CopyLocal property is just to tell visual studio whether or not to copy ... Because CLR start looking for assebmly from the GAC. ... S> put several assemblies in the GAC. ...
    (microsoft.public.dotnet.framework)

Loading