I am currently evaluating the reports, and upgraded to 11.2 as I needed to test out the parameter passing features.
I am now experiencing the following error when viewing reports with the XamReportViewer :
Infragistics.Reports.Engine.EngineException: There was an error while loading the report SimpleJobReport.igr. Details: Unable to cast object of type 'Infragistics.Reports.MeasureDataType' to type 'Infragistics.Models.Data.DataType'.
I have create a new report with only a label as I thought my original test report may have been corrupted. This new report gives me the same error.
I could not find any documentation on whether I need to alter the client app.config. Have include both the server web.config and the client app.config files.
The XAML for the viewer is:
<ig:XamReportViewer Grid.Row="1" ZoomScale="75" >
<ig:XamReportViewer.RenderSettings>
<ig:ServerRenderSettings DefinitionUri="SimpleJobReport.igr" ServiceEndpointUri="http://localhost:53117/ReportService.svc" />
</ig:XamReportViewer.RenderSettings>
</ig:XamReportViewer>
I'm glad to hear it worked.
For future reference, here is a complete guide on Migrating to NetAdvantage Reporting 2011.2.
Regards,
Miguel.
Many thanks Miguel. Worked as suggested.
You can just use the same syntax:
i.e. DefinitionUri="ReportingClassLibrary;component/SimpleJobReport.igr"
And add a reference in your web project to the ReportingClassLibrary so it can find the assembly (dll).
You can check our samples solution which actually does the same thing.
Best regards,
Many thanks for your help Miquel. Deleting the old 11.1 files in my bin directory solved my initial problem.
When I wrote my initial app I created a Class Library called ReportingClassLibrary. In my DefinitionUri how can I access the DLL which contains the reports? This DLL is referenced via the report service. I have everything running if I put the reports into the report service project but I would prefer to have a library that could possibly be swapped out.
Thanks for the excellent support.
Steve
Hi Steve,
We will be publishing a blog post on this ASAP.
Meanwhile, here is a quick guide to migrate your projects:
In order to migrate to NA Reporting 2011.2 from a previous version you should check the following:
1) Update references to assemblies (from *.v11.1 to *.v11.2).
This includes project references and configuration files such as web.config (if any).
Note: InfragisticsSL4.Models.v11.1 has been replaced for the following: infragisticsSL4.Models.Data.v11.2 and InfragisticsSL4.Models.Presentation.v11.2
2) Update Report Version (*.igr)
Open your reports (designer view) and you will be prompted to convert them to the current version. Make sure the report has a valid Build Action (Resource, Content, None). you can learn more about this here.
3) Update Report DefinitionUri in Report Viewer.
NA Reporting 2011.2 uses Pack Uri scheme to specify the DefinitionUri, you can learn more about this here. For instance, here is how your code should be updated:
<ig:ServerRenderSettings DefinitionUri="AssemblyName;component/SimpleJobReport.igr" ServiceEndpointUri="http://localhost:53117/ReportService.svc" />
I hope this gets you going, I'll let you know as soon as we post a complete guide.