At runtime I am getting:
ERR: The assembly reference did not match the assembly definition found.
I was able to gather this information:
*** Assembly Binder Log Entry (6/24/2020 @ 9:08:56 AM) *** The operation failed. Bind result: hr = 0x80131040. No description available. Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll Running under executable C:\Program Files (x86)\XXX\yyy.exe --- A detailed error log follows. Pre-bind state information LOG: DisplayName = System.Threading.Tasks.Extensions, Version=22.214.171.124, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (Fully-specified) LOG: Appbase = file:///C:/Program Files (x86)/XXX/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = yyy.exe Calling assembly : Microsoft.Bcl.AsyncInterfaces, Version=126.96.36.199, Culture=neutral, PublicKeyToken=pp2b13ffcd2eeef21. LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Program Files (x86)\XXX\yyy.exe.Config LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Redirect found in application configuration file: 188.8.131.52 redirected to 184.108.40.206. LOG: Post-policy reference: System.Threading.Tasks.Extensions, Version=220.127.116.11, Culture=neutral, PublicKeyToken=pp2b13ffcd2eeef21 LOG: GAC Lookup was unsuccessful. LOG: Attempting download of new URL file:///C:/Program Files (x86)/XXX/System.Threading.Tasks.Extensions.DLL. LOG: Assembly download was successful. Attempting setup of file: C:\Program Files (x86)\XXX\System.Threading.Tasks.Extensions.dll LOG: Entering run-from-source setup phase. LOG: Assembly Name is: System.Threading.Tasks.Extensions, Version=18.104.22.168, Culture=neutral, PublicKeyToken=pp2b13ffcd2eeef21 WRN: Comparing the assembly name resulted in the mismatch: Revision Number 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. *** Assembly Binder Log Entry (6/24/2020 @ 9:08:56 AM) *** The operation failed. Bind result: hr = 0x80131040. No description available.
Is there a way to find out which project/Assembly/dependency (The whole recursive chain till the Program.cs) is trying to load System.Threading.Tasks.Extensions at application load?
User contributions licensed under CC BY-SA 3.0