Showing posts with label System.Net.Http.Primitives. Show all posts
Showing posts with label System.Net.Http.Primitives. Show all posts

Tuesday, August 4, 2015

Could not load file or assembly System.Net.Http.Primitives. Located assembly's manifest definition does not match the assembly reference

Add


 <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.29.0" newVersion="4.2.29.0" />
</dependentAssembly>
</assemblyBinding>


Remove <assemblyBinding  appliesTo="v.02" attribute

if attribute present it search for system.primitive dll with version 1.5. which is not present
else it loads System.Net.Http.Primitives with 4.2.29.0

Don't touch machine.config because its a heart of system server.
Doctor never opens patient's heart for chest pain.