cancel
Showing results for 
Search instead for 
Did you mean: 

SAP BusinessObjects BI platform .NET SDK Redistributable 64bit 4.2 SP3, SetDataSource problem

Former Member
0 Kudos

Hi,
i have a web application that works fine with a prior version of .NET SDK.
I'm migrating this application to an updated version of the SDK because we are porting our web application on Windows 2012 and the old SDK that i'm using, doesn't install on Windows 2012.
When i try to use the old c# code for exporting the report i get a Win32 exception that kills the application pool serving the web application.

This is a sample code to show you what I mean:

            System.Data.DataSet dataset = new System.Data.DataSet();
            dataset.ReadXml(Server.MapPath("report1.xml"));
            ReportDocument report = new ReportDocument();
            string rptFile = Server.MapPath("report1.rpt");
            report.Load(rptFile);
            report.SetDataSource(dataset);
            Stream s = report.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);

If I use this code on a web application thats running with an application pool with target framework 2.0 the page doesnt show and the worker process dies, the problem seems caused by the SetDataSource instruction.

If I use this code from a console application it works fine.

I'm using the 64 bit version of SDK.

Accepted Solutions (0)

Answers (0)