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

[Solved] URGENT - Unable to cast object of type 'ReportClass.ListaReunioes' to type 'Telerik.Reporting.IReportDocument'.

2 Answers 372 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manuel
Top achievements
Rank 1
Manuel asked on 18 May 2012, 05:56 PM
Hi there telerik,

I updated OpenAcess ORM dll for new Q1 2012, and after that my reports never work again.

When I try see a report, appears a message in report Viewer of this type:

A report instance of type 'ReportClass.ListaReunioes' cannot be created.
Unable to cast object of type 'ReportClass.ListaReunioes' to type 'Telerik.Reporting.IReportDocument'.


My report dll version is 5.3.11.1116

My Radsilverlight dll controls version is 2011.2.712.1040

My OpenAcessORM version is 2012.1.301.2 (Q1 2012 )

Please let me know if this is a conflit library problem, or if could be something else.

Thanks in advance,

Nelson Silva

2 Answers, 1 is accepted

Sort by
0
Manuel
Top achievements
Rank 1
answered on 21 May 2012, 11:55 AM
Please, I need help here. This is very important..
0
Accepted
Steve
Telerik team
answered on 21 May 2012, 01:40 PM
Hello Manuel,

The error message you get should not have anything to do with the upgrade of the OpenAccess product. Try setting the report to the viewer in code:

ReportClass.ListaReunioes report1 = new ReportClass.ListaReunioes();
ReportViewer1.Report = report1;

to see if you would be able to get a more user friendly error message, check the InnerException and Output window of Visual Studio for more information.

All the best,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

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