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

ObjectDataSource error during Preview

1 Answer 120 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Dario Concilio
Top achievements
Rank 2
Dario Concilio asked on 18 Apr 2016, 12:54 PM

Hi to all,

I created a report connected to ObjectDataSource.

Report calls a public methods called GetItemByCode(string p_Code) that returns a Customer object. This Customer inherits a class called ModelBase.

Now when I try to preview, it appears a red box within error that says "file not found", itis refering to assembly that contains ModelBase class.

I checked that my report-project refers correctly to this assembly.

What can I do?

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 18 Apr 2016, 03:04 PM
Hi Potito,

The design-time preview is executed from Visual Studio as a running application. thus all assemblies and custom settings must be applied based on the devenv.exe execution folder and devenv.exe.config file's settings. For more details, check Report Designer Preview is not working when using ObjectDataSource.

To preview the report, test creating a sample project with a viewer and references to all related projects (reports, data, third-party libraries). Depending on the report's settings, you may need to declare external assemblies in a Telerik Reporting section, in order the reporting engine to recognize the types used by the report. For more details, please check Previewing a report definition that uses an external assembly.


Let us know if you have any further questions.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Report Designer (standalone)
Asked by
Dario Concilio
Top achievements
Rank 2
Answers by
Stef
Telerik team
Share this question
or