| 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 |
| Product | Progress® Telerik® Reporting |
| Version | Q2 2012 and later |
| Report Viewers | WinForms, WPF, ASP.NET |
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.
This error might occur if you are using a WebSite project and you have the report class in the WebSite directly.
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.