In ASP.NET MVC 5 application, when I update my WindowsAzure.ServiceBus nuget package to ver 3.4.6, I get the following error when the web application starts
As I known, the Microsoft Azure Service Bus has no any dependencies after version 3.1.4, while the prior version may depend on Microsoft.WindowsAzure.ConfigurationManager
, and both libraries do not depend on WindowsAzure.ServiceBus
. Please try to downgrade WindowsAzure.ServiceBus to your previous version to isolate this issue.
{"Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.":"System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"}
According to your description, I tried to reproduce this issue and did not encounter this issue. Please try to clean your project and restore your NuGet packages. Also, please follow the suggestion in my comment to locate this issue. Additionally, there are some similar issues, you could refer to them (issue1 and issue2).