What is the Post-Policy link in the assembly binding log?

Trying to understand this build failure failure. What is the meaning of the "Post-policy reference" link in the log below?

LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\approot\WorkerRole.dll.config
LOG: Using host configuration file: 
LOG: Using machine configuration file from D:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Microsoft.WindowsAzure.Diagnostics, Version=2.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///E:/approot/Microsoft.WindowsAzure.Diagnostics.DLL.
LOG: Assembly download was successful. Attempting setup of file: E:\approot\Microsoft.WindowsAzure.Diagnostics.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: Microsoft.WindowsAzure.Diagnostics, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: The assembly reference did not match the assembly definition found.
ERR: Run-from-source setup phase failed with hr = 0x80131040.
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

Nothing is visible in my code links that the DLL is trying to figure out what is going on.

+4
source share
1 answer

I understand that the "Post-policy reference" is an assembly reference after the publisher policy and in general assembly redirects. For example, https://indexoutofrange.com/Could_not_load_file_or_assembly_or_one_of_its_dependencies/ for some examples.

As to why this DLL is loaded, the corresponding line is missing from the log fragment. On the line just above

LOG: This bind starts in default load context.

-

Calling assembly : XYZ.

, Microsoft.WindowsAzure.Diagnostics. .

+1

Source: https://habr.com/ru/post/1611346/


All Articles