I am using System.Net.Http.Formatting in a webpart on a Sharepoint server but i am getting the below error. I understand that it is part of the MVC framework and I reference it through C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies\System.Net.Http.Formatting.dll
but MVC is not installed on the Sharepoint server. It is installed on my dev server and my solution works fine in the dev server but not on the Sharepoint server with no MVC. Can someone please tell me how can i reference it in the visual studio solution so that it works without instaling MVC framework
The solution which uses the assembly System.Net.Http.Formatting is a Class library which is used by the Sharepoint Web Part.
Error: Could not load file or assembly 'System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
I tried Copy Local to true for the assembly but I get the same error.
Using Visual Studio 2013