Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.55 KB

File metadata and controls

42 lines (34 loc) · 1.55 KB
title Cannot Create Objects from String Representations
page_title Report Property Cannot Create Objects from String Representations
description Learn why you may see the error Cannot Create Objects from String Representations in the Report Property when working with Telerik Reporting in WebSite projects.
slug cannot-create-objects-from-string-representations
tags telerik, reporting, run, time, cannot, create, objects- from, their, string, representations, in, report, property
previous_url /troubleshooting/run-time
published true
type troubleshooting
res_type kb

Environment

Product Progress® Telerik® Reporting
Version Q2 2012 and later
Report Viewers WinForms, WPF, ASP.NET

Description

Cannot create an object of type "Telerik.Reporting.Report" from its string representation "MyNameSpace.MyClass, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" for the "Report" property.

Cause

This error might occur if you are using a WebSite project and you have the report class in the WebSite directly.

Solution

The issue is due to the fact that when using a WebSite, after rebuild, the following will always be different and it will not match with the originally assigned report: App_Code.__unch8s_n__. It is recommended that you follow the best practices and have the report in a separate class library that is referenced in the application or WebSite.