c# - Not able to add System.Net.Http to Project updated to 4.6.1 -


i updated mvc project .net 4.6 .net 4.6.1. when start application, there error, system.net.http missing.

enter image description here

in add reference dialog can see reference:

enter image description here

but in list, there icon, indicating warning:

enter image description here

i tried remove , add reference again several times no luck. tried new mvc project based on .net 4.6.1 , here works charm.

so can do, reference system.net.http in existing project?

first go csproj file, check if version same packages.config ? if yes check in bin folder same version, of them should same version, if not remove line, , go packages.config , search library , remove line again. add library again.
first image csproj file line csproj file

here bin folder bin folder

and here packeges.config packages

as mentioned check 3 have same version, , no duplicate, if not remove , add again , check dll in bin folder generated or not. hope help.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -