Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to run a project on my system (the project is in mvc and azure ). i am able to build the project but it is showing error on run time .the error message is as following :-

Could not load file or assembly 'System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Posted

Please try to add reference to the assembly explicitly.

Right click your Project -> Add Reference

Hope that helps. :)
 
Share this answer
 
Comments
ashwnai kumar pandey 26-Jul-13 3:00am    
but there are about more than 8 projects how to add and where i have tried to remove system.web.http.dll and add it again but still nit working and throwing same error .
Thanks
Please see if you can find the assembly 'System.Net.Http', Version=2.0.0.0 in the GAC. I guess the version referenced by your project doesn't match with that present in the GAC.

In your solution, try to locate the project where you have referenced the assembly System.Net.Http.

You will have make sure the versions referenced and that in the GAC match.
 
Share this answer
 
There is version problem.So Add Reference again of System.Net.Http
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900