Skip to Content
avatar image
Former Member

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

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();
            ReportDocument report = new ReportDocument();
            string rptFile = Server.MapPath("report1.rpt");
            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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers