ObjectDataSource error during Preview

2 posts, 0 answers
  1. Dario Concilio
    Dario Concilio avatar
    180 posts
    Member since:
    Apr 2016

    Posted 18 Apr 2016 Link to this post

    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?

  2. Stef
    Stef avatar
    3610 posts

    Posted 18 Apr 2016 Link to this post

    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.

    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
Back to Top