locked
Is this means I need crdb_adoplus.dll file? RRS feed

  • Question

  • 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?

     


    I Believe, I Can
    • Edited by xuts Saturday, July 16, 2011 1:03 PM
    Saturday, July 16, 2011 11:58 AM

Answers

  • Search on crdb_adoplus.dll and you'll find the answer, add this to your app.config file:

    <startup useLegacyV2RuntimeActivationPolicy="true">
      <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
    </startup>

     

    Don


    Don Williams
    Monday, July 18, 2011 5:06 PM

All replies

  • 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\

    can I copy them to C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\  folder?


    I Believe, I Can
    Saturday, July 16, 2011 12:59 PM
  • 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.

     

    above is the new error message after i copy files into dotnet1 folder.


    I Believe, I Can
    Saturday, July 16, 2011 1:02 PM
  • Search on crdb_adoplus.dll and you'll find the answer, add this to your app.config file:

    <startup useLegacyV2RuntimeActivationPolicy="true">
      <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
    </startup>

     

    Don


    Don Williams
    Monday, July 18, 2011 5:06 PM