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

Telerik.ReportViewer.WebForms dependencies and Microsoft.ReportViewer.WebForms compatibility

1 Answer 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Iago
Top achievements
Rank 1
Iago asked on 08 Jun 2017, 09:43 AM

Hello everyone,

I am using both

  •  Telerik.ReportViewer.WebForms 11.0.17.222 and 
  •  Microsoft.ReportViewer.WebForms 12.0.0.0 in the same solution.
     
     I have just upgraded from Microsoft.ReportViewer.WebForms 10.0.0.0 and whenever I build my solution I get the following messages:
     
    C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3268: The primary reference "Telerik.Reporting.Services.HttpClient, Version=11.0.17.222, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "Telerik.Reporting.Services.HttpClient, Version=11.0.17.222, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

3>  No way to resolve conflict between "Microsoft.ReportViewer.ProcessingObjectModel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" and "Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "Microsoft.ReportViewer.ProcessingObjectModel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" arbitrarily.
3>  No way to resolve conflict between "Microsoft.ReportViewer.DataVisualization, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" and "Microsoft.ReportViewer.DataVisualization, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "Microsoft.ReportViewer.DataVisualization, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" arbitrarily.

 

Reports seem to be working as expected, but I am particularly worried about two last messages because I have replaced all references I have found to the 10.0.0.0 version, but I wonder if  there is any hidden dependency to a specific Microsoft.ReportViewer version.

Any hint would be appreciated.

Thank you in advance.


1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 08 Jun 2017, 01:33 PM
Hi Iago,

Telerik Reporting does not have dependencies on Microsoft viewers.

The first error indicates that the project misses a reference to System.Net.Http.dll, that is required by Telerik.Reporting.Service.HttpClient.dll.
Please note that Telerik.Reporting.Service.HttpClient.dll is not required when you use the old WebForms ReportViewer. Please add only the assemblies required by the viewer - Deploying Web Applications.


On a side note, if you want to skip having Telerik Reporting references in the project, you can use the HTML5 Viewer that is a client-side widget that can be declared in JavaScript. You will need also a separate project that host an instance of the Reporting REST Service (a WebAPI based controller) with enabled CORS. The viewer needs the address of the service (serviceUrl property) to display content.


Let us know if you need further help.

Regards,
Stef
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Iago
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or