I have a VB.NET application crashing with the following error:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks, Version=2.5.19.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'System.Threading.Tasks, Version=2.5.19.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I am trying to use the Microsoft.Bcl.Async library. I installed it through Nuget in a project that actually uses Async / Await calls and a project that references it. Everything works fine on my computer, but when I publish and test on another computer, my program crashes when I try to use part of it that uses Async / Await.
In System.Threading.Tasks, it is specified in both projects with Copy Local set to true. Microsoft.Threading.Tasks is mentioned in both projects with Copy Local set to true. I saw another thread about it, and it was installed in the respective projects. These are the lines contained in my app.config file:
<dependentAssembly> <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-2.5.19.0" newVersion="2.5.19.0" /> </dependentAssembly>
What am I missing when setting up? Please let me know if you need more information. Thanks!
source share