In a strange issue, we would get an error while trying to upload an image using multipart async methods in web api.
Finally we found out that the problem was with System.Net.Http.dll versions not working correctly, the problem and solutions are mentioned at
It was resolved after we added this entry to web.config file
<configuration><runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" /></dependentAssembly></assemblyBinding></runtime></configuration>
No comments:
Post a Comment