Binding Policies Asp.Net -
11-14-2007
, 07:23 AM
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\msco rwks.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\Temp orary
ASP.NET Files\interecm\325d865f
LOG: Cache Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary
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\conf ig\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__96e47e858ec f46da\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\msco rwks.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\Temp orary
ASP.NET Files\interecm\325d865f
LOG: Cache Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary
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\conf ig\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__96e47e858ec f46da\XXXXX.dll.
LOG: Assembly is loaded in default load context. |