2
Answers

webconfig issue

Photo of Madan Shekar

Madan Shekar

5y
692
1
how to fix this issue ?
 
 

Answers (2)

0
Photo of Salman Beg
156 12.1k 624.1k 5y
Hi.
The problem is with this System.Net.Http.Formatting dll. When you add a new dll then it's reference will exists  in the web.config file. But in your case the install dll version in the bin and the reference of that dll in web.config file doesn't match. So if you check the version in both the point you can able to uderstand properly. Try to update the version or set the previous dll version as per web.config file. 
Thanks. 
0
Photo of Rupesh Kahane
101 19.1k 4.2m 5y
try below links
1) https://stackoverflow.com/questions/22403650/could-not-load-file-or-assembly-system-net-http-formatting-or-one-of-its-depen
2) try
  1. go to NuGet package manager.
  2. select Updates (from the left panel)
  3. update WebApi components

After that the project ran without errors.