Why does attempting to start a task cause an EntryPointNotFoundException?

276 Views Asked by At

In my application, I have a utility class which is supposed to execute a series of tasks in parallel, and provide reporting on the success and timing of the various tasks.

Every time I run it, I get an EntryPointNotFoundException.

The simplest test case I could come up with which creates the behavior is beyond trivial. Just

 Task.Run(() => { Console.WriteLine("This is sanity test"); });

using no return value, and no custom classes anywhere throws an EntryPointNotFoundException.

VS2015 image showing code and exception

This is with Visual Studio 2015, the process is 64 bit (which for the overall application it MUST be, running on Windows 7 64-bit). It is a .NET 4.5 console application.

What causes this and how can it be fixed?

0

There are 0 best solutions below