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.
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.