Why does attempting to start a task throw an EntryPointNotFoundException?

In my application, I have a utility class that must perform a parallel series of tasks and report on the success and timing of various tasks.

Every time I run it, I get an EntryPointNotFoundException.

The simplest test case I could come up with creates behavior that is trivial. Just

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

without using the return value, and no user classes anywhere throw an EntryPointNotFoundException.

VS2015 image showing code and exception

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

What causes this and how can it be fixed?

+6
source share

All Articles