on 07-17-2011 9:18 AM
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); // <----
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?
A search (search box in the top right corner of this page) should have come up with the following KBase:
[1525432 - Could not load file or assembly 'file:///<Path>crdb_adoplus.dll' or one of its dependencies|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533323335333433333332%7D.do]
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.