I'm not sure why am I getting this exception. I included System.Net.Http assembly into my C# console project. It is compiled with VS 2010 using .NET Framework 4 Client Profile.
So when I try to use HttpClient class in my code, the app works fine on my Windows 8.1 development machine, but when I run the Release build of the executable on a Windows 7 machine with .NET Framework 4 installed, I get the following exception:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly
System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3aor one of its dependencies. The system cannot find the file specified.
What am I missing there?
