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

Report Preview window and indirect assemblies

1 Answer 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 06 Feb 2014, 09:38 PM
Hey,

When using the Visual Studio (2013) report designer, is it possible to preview reports where the objects in the report come from an indirect reference?  In this case, I have three projects:

- Web
- Reports
- Domain

The web project has a page (at /Home/Report) that loads a report from the Reports project.  The Reports project contains a repository that returns objects from the Domain project.  This all works swimmingly when running the report in the web site in a browser.  However, when I try to preview that report, I get the following error:

An error has occurred while processing Table 'crosstab1': Could not load file or assembly 'ReportingTestProject.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

In another thread, there's a mention that the "report constructor is executed in the context of the Visual Studio application, so the current application is devenv.exe [and] any ... references to your DAL should be ... present in the same folder."
   In this case, does this mean that these DLLs are required to exist in either the same folder as deveng.exe (or in the GAC)?  Neither of those two are an appealing option, and I'm hoping for an alternative.

Here's an example project with this setup.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 11 Feb 2014, 07:14 PM
Hello Jeremy,

Please download and upgrade to the latest available Telerik Reporting Q3 2013 release - version 7.2.14.127. Most probably the issue is related to the way Vs 2012+ loads dependent assemblies, in the case the assembly is not loaded as states the error.

When it happens, try to reconfigure the ObjectDataSource without pressing Clean and Rebuild, just preview the report. You can also use Win Forms ReportViewer as the fastest way to preview the changes. The other workaround for the moment is to use the Standalone Designer and extend its configuration or extend the VS configuration.

A fix for the issue with loading dependent assemblies will be added in consecutive releases.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

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