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

Silverlight Report Viewer Error

3 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 15 Nov 2011, 11:36 PM
I have a Silverlight application that uses Telerik reporting. I added the necessary references in my Web app, added a ReportService.svc file and the web.config service model xml. I added the Telerik references in my Silverlight app, and can add a ReportViewer in Visual studio's Designer. However, when I run the application I get an exception reading "The invocation of the constructor on the type 'MyProject.Report' that matches the specified binding constraints threw an exception." I have nothing entered for "ReportServiceURI" or "Report". Not sure what the issue is as it seems to load fine in the design view. Thanks in advance!

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 16 Nov 2011, 10:17 AM
Hi Travis,

We cannot say for certain what is the problem by the provided info. We highly recommend reviewing the following links:

Additionally, you already have a sample at your disposal - the Visual Studio examples we install along with the product. You can use the provided Silverlight application as base.


Best wishes,
Steve
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

0
Travis
Top achievements
Rank 1
answered on 18 Nov 2011, 04:44 AM
Thanks for the quick response. I added all the references, including those in the Silverlight application. I can see the report fine in design view, but when I run I get an error in the constructor of the Silverlight control containing my report:

The type 'Office_BlackTheme' was not found because 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls' is an unknown namespace. [Line: 8 Position: 36]

I included references to Telerik.Windows.Controls, .Input, and .Navigation, as well as Telerik.ReportViewer.Silverlight. Thanks again
0
Steve
Telerik team
answered on 18 Nov 2011, 01:56 PM
Hello Travis,

Please make sure you're using the version of RadControls for Silverlight that is from the same Q as the Telerik Reporting release e.g. Q3 2011. If you're not using the Silverlight controls in your project, you can get the relevant assemblies in the reporting examples (usually C:\Program Files (x86)\Telerik\Reporting Q3 2011\Examples\CSharp\SilverlightDemo\bin).

Greetings,
Steve
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

Tags
General Discussions
Asked by
Travis
Top achievements
Rank 1
Answers by
Steve
Telerik team
Travis
Top achievements
Rank 1
Share this question
or