Getting an
Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified." exception after publishing to Azure as an App Service.
I have created a ASP.NET Wep API application using Entity Framework DB First approach. I did not use any NuGet package to install System.Net.Http, it was added automatically when the project was created. The latest version is 4.2.0.0.
It works fine when I run on my local IIS (IIS Express).
I published this app as an Azure App Service successfully but it does not open the API Home page. Instead I get the above mentioned exception.
I tried using bindingRedirect in Web.config but it does not help.
I am new to Azure and not sure how the dlls are deployed. Any help is greatly appreciated.