Skip to Content
author's profile photo Former Member
Former Member

I got trouble on load

Hi all,

I'm using SAP Crystal Report for VS 2010. The error code like follow:

PriceLabelDataSouce plds = new PriceLabelDataSouce();

System.Data.DataSet dsReport = new DataSet();

dsReport.ReadXml(plds.GetStream()); // plds.GetStream() return xml stream.

ReportDocument cryRpt = new ReportDocument();

cryRpt.Load(@".\reports\ShelfLabelReport.rpt");

cryRpt.SetDataSource(dsReport); // <----


get error message here

this.crystalReportViewer.ReportSource = cryRpt;

this.crystalReportViewer.Refresh();

When the program run to "cryRpt.SetDataSource(dsReport);". I get error message like follow:

Could not load file or assembly 'file:///C:\Program Files\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 only have "dotnet" folder under C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\. And there has no crdb_adoplus.dll file in there. How can I fix this problem?

Then I found crdb_adoplus.dll under C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\. But after i copy files into dotnet1 folder, I get following error message:

Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

What I can do?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.