Hello everyone!..
I am having a really annoying problem, in my code when I try to set de data source to the report the following error appears:
Could not load file or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
I am running .NET Framework 4 running in VS2012 to X86 and I have installed the CRforVS_13_0_8, although just in case I installed all the version from the CRforVS_13_0_5 to the CRforVS_13_0_8.
Also I have found in many sites that adding the following lines to the app.config seems to fix the problem, but in my case doesn't work:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
Part of my code is this, just in case:
using (ReportDocument report = new ReportDocument())
{
try
{
// carga el reporte desde su ubicación configurada
report.Load(pathReporte);
report.SetDataSource(data);
....
and the dlls I have referenced are this ones:
- CrystalDecisions.CrystalReports.Engine
- CrystalDecisions.ReportSource
- CrystalDecisions.Shared
Thanks very much for your help in advance.