Advanced reporting
and data visualization components for .NET
LIVE CHAT Welcome, guest

 





Invalid Cast Exception for XamlRenderer
Display Posts for:
Invert
Jonas Lögdberg 04/27/2010 06:40
Invalid Cast Exception for XamlRenderer

We get an InvalidCastException when trying to use local SSRS 2005 reports (rdlc) with Visual Studio 2010. We have tried to follow the step by step guide for local reports.

We are using:
* Viusal Studio 2010
* .NET Framework 3.5
* Reporting Services 2005 (rdlc-file created with VS 2008)
* Silverlight 4

ERROR: [Service::Render] :: Microsoft.Reporting.WebForms.LocalProcessingException: An error occurred during local report processing. ---> System.InvalidCastException: It was not possible to convert an object of type PerpetuumSoft.Reporting.Silverlight.XamlRendering.XamlRenderer to type Microsoft.ReportingServices.ReportRendering.IRenderingExtension.
vid Microsoft.Reporting.LocalRenderingExtensionInfo.Instantiate()
vid Microsoft.Reporting.ControlService.CreateRenderer(String format, Boolean allowInternal)
vid Microsoft.Reporting.LocalService.Render(PreviewItemContext itemContext, Boolean allowInternalRenderers, ParameterInfoCollection reportParameters, IEnumerable dataSources, DatasourceCredentialsCollection credentials, CreateAndRegisterStream createStreamCallback, ReportRuntimeSetup runtimeSetup, ProcessingMessageList& warnings)
vid Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, CreateAndRegisterStream createStreamCallback, Warning[]& warnings)
--- Slut på stackspårning för interna undantag ---
vid Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, CreateAndRegisterStream createStreamCallback, Warning[]& warnings)
vid Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)
vid Microsoft.Reporting.WebForms.LocalReport.Render(String format, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams, Warning[]& warnings)
vid PerpetuumSoft.Reporting.Silverlight.Server.ReportingServices.MsReportServiceLocal.Render(String id, ExceptionDetailBase& ReportError)
Vlad Nekrasov 04/28/2010 01:18
Invalid Cast Exception for XamlRenderer

Hello, Jonas

It is said here (http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=116&tid=gettingstartedlocalmode), that it is possible to work with RDLC files only in the following environment:
.NET Framework 3.5 SP1
Silverlight v3
Silverlight v3 SDK
Silverlight v3 Developer Tool
Visual Studio 2008

We have already come to conclusion that we will inform you as soon as we find out a complete solution for RDLC.


Best regards,
Vlad Nekrasov
Perpetuum Software Team