I try to use Telerik reporting with:
- html5 reporting viewer (angular)
- .net telerik reporting webapi 2.0 service (.net 4.5.2)
I follow all instructions, but I get the following error message:
"Could not load file or assembly 'System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference."
See attachment capture.png
I tried:
1. This dll is located in the bin directory of de service.
2. I also installed al system.net.http.formatting + system.net.http versions in the GAC.
3. I tried the redirects:
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="5.2.3.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
</dependentAssembly>
4. tried separatedly webapi service, tried existing webapi.
5. I see that telerik.reporting.services.webapi 11.2.17.913 uses:
- newtonsoft.json 4.5.0, system.net.http 2.0.0, system.net.http.formatting 4.0.0
6. Installed Cors (because of error messages) and that is working
7.In my development environment it is working (iis express), but on the server (iis) is not working. I copied the output files, I tried with publish. Nothing is helping.
8. reinstall Microsoft.AspNet.WebApi.Core -version 5.2.3 and other packages
9. tried .net 4.0, .net 4.5, net 4.6
10. tried fiddler: I see the errormessage at: http://server/api/reports/clients (http error 500)
11. tried: https://stackoverflow.com/questions/28604325/how-to-get-system-web-http-version-5-2-3-0
12. tried: http://docs.telerik.com/reporting/telerik-reporting-rest-host-http-service-using-web-hosting
13. For angular gui i used demo of telerik installation.
What can I do? Why is it still using system.net.http.formatting 4.0.0?