on 03-16-2017 9:07 AM
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.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.