This is a migrated thread and some comments may be shown as answers.

VS2013, HTML5 Service System.Web.Http, Version=4.0.0.0

5 Answers 204 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Carsten Koster
Top achievements
Rank 2
Carsten Koster asked on 06 Nov 2013, 01:16 PM

Hello again,

could it be that the TElerik Reporting Html 5 Service is not compatible to the current Microsoft.WebAPI (5.0)?
- I created an empty Asp.net Application (WebForms) in VS2013,
- added the Telerik.Reporting dlls via filesystem
- and the Microsoft.WebAPI via nuget.
- configure the reporting routes in the global.asax /APP_START:
ReportsControllerConfiguration.RegisterRoutes(System.Web.Http.GlobalConfiguration.Configuration);
- Start the WebApp

The application throws an exception:

Die Datei oder Assembly "System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assembly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)

The same problem arises when using the default visual studio webforms template which includes/defaults to the current Microsoft.AspNet.WebAPI (5.0)

I tried to download the latest internal build but the link (
http://www.telerik.com/downloads/nightbuildfiles/dkkm/Telerik_Reporting_Q3_2013_7.2.13.1105_DEV.msi)

only points to a moved resource which redirects to the  accounts/download.aspx

To reproduce the problem just follow the steps above in a VS2013 instance

THank you for your assistance.
Regards,
Kris


5 Answers, 1 is accepted

Sort by
0
Carsten Koster
Top achievements
Rank 2
answered on 11 Nov 2013, 11:19 AM
Sorry to bump this thread but a week has passed and there is no sign of an answer.
Should It really be the case that Telerik.Reporting is incompatible with the new VS2013 WebForms Templates? That would be very disappointing.

Kind regards,
Kris
0
IvanY
Telerik team
answered on 11 Nov 2013, 01:24 PM
Hi Carsten,

Up to your question - you will have to use binding redirect in order to work with the new web api, please check the code snippet below:
<dependentAssembly>
  <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" />
  <bindingRedirect oldVersion="1.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>

Regards,
IvanY
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

0
Carsten Koster
Top achievements
Rank 2
answered on 11 Nov 2013, 02:12 PM

<
dependentAssembly>
   <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" />
   <bindingRedirect oldVersion="1.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>

Thank you. For others having the same problem you also need to add this statement to make it work, otherwise the HTML5-Viewer will fail.

Also, could you point me to the documentation stating that this workaround is needed? It could have saved me some time.

And the other thing I mentioned, I am  still unable to download the latest internal build of your reporting dlls. As it supposedly fixes the problem with  BrowserLink, it would really be nice have.

Thank you for you assistance.

Regards,
Kris
0
IvanY
Telerik team
answered on 14 Nov 2013, 12:10 PM
Hi Carsten,

Currently this is not mentioned in our documentation, but you can rest assured that it will be in the future.

Regarding the latest internal build - please check this link, under available downloads you should see the internal build from 11.05.

Regards,
IvanY
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

0
Yegor
Top achievements
Rank 1
answered on 15 May 2014, 12:06 PM
By the way it is still not in documentation. Thanks for the post It saved me a lot of time! It is good I was lucky with googling :)
Tags
General Discussions
Asked by
Carsten Koster
Top achievements
Rank 2
Answers by
Carsten Koster
Top achievements
Rank 2
IvanY
Telerik team
Yegor
Top achievements
Rank 1
Share this question
or