G
Guest
I have several ASP.NET applications with near identical web.config files. In
one of them I am successfuly able to bind to an assembly while on others I am
not.
All of them have the following qualifiers:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<qualifyAssembly partialName="OrderDynamics.ImageService.Interfaces"
fullName="OrderDynamics.ImageService.Interfaces,Version=1.0.0.0,Culture=neutral,PublicKeyToken=663065290036ba4e"/>
</assemblyBinding>
</runtime>
Using fusionlogvw, I can see that in the working app it is succesfuly using
the web.config file:
*** Assembly Binder Log Entry (2/27/2006 @ 2:57:41 PM) ***
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\Microsoft.NET\Framework\v2.0.50727\aspnet_wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = STEVENDOTNET\ASPNET
LOG: DisplayName = OrderDynamics.ImageService.Interfaces
(Partial)
LOG: Appbase = file:///C:/Visual Studio Projects/Nutrazone/Liposlim/
LOG: Initial PrivatePath = C:\Visual Studio Projects\Nutrazone\Liposlim\bin
LOG: Dynamic Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\liposlim\408be0eb
LOG: Cache Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\liposlim\408be0eb
LOG: AppName = 17777a67
Calling assembly : Business Logic, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=e07d99407b976026.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Visual Studio
Projects\Nutrazone\Liposlim\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: Partial reference qualified from config file. New reference:
OrderDynamics.ImageService.Interfaces, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=663065290036ba4e.
LOG: Binding succeeds. Returns assembly from
C:\WINDOWS\assembly\GAC_MSIL\OrderDynamics.ImageService.Interfaces\1.0.0.0__663065290036ba4e\OrderDynamics.ImageService.Interfaces.dll.
LOG: Assembly is loaded in default load context.
However the non working app shows:
*** Assembly Binder Log Entry (2/27/2006 @ 2:54:56 PM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = STEVENDOTNET\ASPNET
LOG: DisplayName = OrderDynamics.ImageService.Interfaces
(Partial)
LOG: Appbase = file:///C:/Visual Studio Projects/Nutrazone/AdminUI/
LOG: Initial PrivatePath = C:\Visual Studio Projects\Nutrazone\AdminUI\bin
LOG: Dynamic Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\adminui\a7112056
LOG: Cache Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\adminui\a7112056
LOG: AppName = dd7b5eda
Calling assembly : Business Logic, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=e07d99407b976026.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Visual Studio
Projects\Nutrazone\AdminUI\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: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/adminui/a7112056/dd7b5eda/OrderDynamics.ImageService.Interfaces.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/adminui/a7112056/dd7b5eda/OrderDynamics.ImageService.Interfaces/OrderDynamics.ImageService.Interfaces.DLL.
LOG: Attempting download of new URL file:///C:/Visual Studio
Projects/Nutrazone/AdminUI/bin/OrderDynamics.ImageService.Interfaces.DLL.
LOG: Attempting download of new URL file:///C:/Visual Studio
Projects/Nutrazone/AdminUI/bin/OrderDynamics.ImageService.Interfaces/OrderDynamics.ImageService.Interfaces.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/adminui/a7112056/dd7b5eda/OrderDynamics.ImageService.Interfaces.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/adminui/a7112056/dd7b5eda/OrderDynamics.ImageService.Interfaces/OrderDynamics.ImageService.Interfaces.EXE.
LOG: Attempting download of new URL file:///C:/Visual Studio
Projects/Nutrazone/AdminUI/bin/OrderDynamics.ImageService.Interfaces.EXE.
LOG: Attempting download of new URL file:///C:/Visual Studio
Projects/Nutrazone/AdminUI/bin/OrderDynamics.ImageService.Interfaces/OrderDynamics.ImageService.Interfaces.EXE.
LOG: All probing URLs attempted and failed.
One line that pops out is
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
How do I find out why it is not applying the policy?
one of them I am successfuly able to bind to an assembly while on others I am
not.
All of them have the following qualifiers:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<qualifyAssembly partialName="OrderDynamics.ImageService.Interfaces"
fullName="OrderDynamics.ImageService.Interfaces,Version=1.0.0.0,Culture=neutral,PublicKeyToken=663065290036ba4e"/>
</assemblyBinding>
</runtime>
Using fusionlogvw, I can see that in the working app it is succesfuly using
the web.config file:
*** Assembly Binder Log Entry (2/27/2006 @ 2:57:41 PM) ***
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\Microsoft.NET\Framework\v2.0.50727\aspnet_wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = STEVENDOTNET\ASPNET
LOG: DisplayName = OrderDynamics.ImageService.Interfaces
(Partial)
LOG: Appbase = file:///C:/Visual Studio Projects/Nutrazone/Liposlim/
LOG: Initial PrivatePath = C:\Visual Studio Projects\Nutrazone\Liposlim\bin
LOG: Dynamic Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\liposlim\408be0eb
LOG: Cache Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\liposlim\408be0eb
LOG: AppName = 17777a67
Calling assembly : Business Logic, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=e07d99407b976026.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Visual Studio
Projects\Nutrazone\Liposlim\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: Partial reference qualified from config file. New reference:
OrderDynamics.ImageService.Interfaces, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=663065290036ba4e.
LOG: Binding succeeds. Returns assembly from
C:\WINDOWS\assembly\GAC_MSIL\OrderDynamics.ImageService.Interfaces\1.0.0.0__663065290036ba4e\OrderDynamics.ImageService.Interfaces.dll.
LOG: Assembly is loaded in default load context.
However the non working app shows:
*** Assembly Binder Log Entry (2/27/2006 @ 2:54:56 PM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = STEVENDOTNET\ASPNET
LOG: DisplayName = OrderDynamics.ImageService.Interfaces
(Partial)
LOG: Appbase = file:///C:/Visual Studio Projects/Nutrazone/AdminUI/
LOG: Initial PrivatePath = C:\Visual Studio Projects\Nutrazone\AdminUI\bin
LOG: Dynamic Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\adminui\a7112056
LOG: Cache Base = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\adminui\a7112056
LOG: AppName = dd7b5eda
Calling assembly : Business Logic, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=e07d99407b976026.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Visual Studio
Projects\Nutrazone\AdminUI\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: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/adminui/a7112056/dd7b5eda/OrderDynamics.ImageService.Interfaces.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/adminui/a7112056/dd7b5eda/OrderDynamics.ImageService.Interfaces/OrderDynamics.ImageService.Interfaces.DLL.
LOG: Attempting download of new URL file:///C:/Visual Studio
Projects/Nutrazone/AdminUI/bin/OrderDynamics.ImageService.Interfaces.DLL.
LOG: Attempting download of new URL file:///C:/Visual Studio
Projects/Nutrazone/AdminUI/bin/OrderDynamics.ImageService.Interfaces/OrderDynamics.ImageService.Interfaces.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/adminui/a7112056/dd7b5eda/OrderDynamics.ImageService.Interfaces.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/adminui/a7112056/dd7b5eda/OrderDynamics.ImageService.Interfaces/OrderDynamics.ImageService.Interfaces.EXE.
LOG: Attempting download of new URL file:///C:/Visual Studio
Projects/Nutrazone/AdminUI/bin/OrderDynamics.ImageService.Interfaces.EXE.
LOG: Attempting download of new URL file:///C:/Visual Studio
Projects/Nutrazone/AdminUI/bin/OrderDynamics.ImageService.Interfaces/OrderDynamics.ImageService.Interfaces.EXE.
LOG: All probing URLs attempted and failed.
One line that pops out is
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
How do I find out why it is not applying the policy?