on 12-19-2011 12:06 PM
We have Have Installed the SAP Crystal Report on our ASP.NET application. Every thing is working fine in Developement and Test Enviornment . But in live we are getting a Error saying "The report you requested requires further information." If we restart the IIS, this error wont come for a some time. But after that, the same error appear again. Then it requires an IIS restart.
With resepect to code wise. We are using datatable. Crystal Report is not directly connected to Database. We are Binding the Datatable to the report. This error is occuring only after installing the SAP Crystal Report. But in the old version of the Crystal Report is was working fine.
Please can any one help us.
Hi,
More information required,
- Crystal reports version?
- Visual Studio version?
- What does the application do? view, export, print reports etc.?
Take a look at below search, which will return many useful articles.
[http://www.sdn.sap.com/irj/scn/advancedsearch?query=thereportyourequestedrequiresfurtherinformation|http://www.sdn.sap.com/irj/scn/advancedsearch?query=thereportyourequestedrequiresfurtherinformation]
Also, Clear the temp folders on your production machine.
Make sure that you are using the cleanup code in your app (.Close () and .Dispose() methods.)
Hope this helps,
Bhushan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the quick response Bhushan,
Crystal Report is : CRRuntime_32bit_13_0_1.msi
Visual Studio : Framework 3.5. Because it is a Webserver.
What APP do : have a look at the code below.
The error is occuring on loading the crystal report itself.
private void GenerateRequestPackageListReport(string reportName)
{
Type t = Type.GetType("RDPlanningV3.Reports.ReportFile." + reportName);
ReportClass report = (ReportClass)Activator.CreateInstance(t);
report.SetDataSource(Session["ForExport"] as DataTable);
CrystalReportViewer1.ReportSource = report;
CrystalReportViewer1.DataBind();
}
protected void Page_Unload(object sender, EventArgs e)
{
CrystalReportViewer1.Dispose();
}
We installed the SAP Crystal report, because our Dev enviornment is upgraded to VS 2010 before we have developed the application in VS 2008. Since open our application on VS 2010, it forced us to convert covert our crystal report to SAP crystal report version. We have change only the crystal report. Our application is still running on .NET 3.5 version.
As I mentioned it is working fine in Dev and Test server. We are not able to reproduce that error in Dev and Test. In live we are getting this issue. After restaring the IIS, the problem will be solved for some time and again it will come with the same issue.
Edited by: gbsanthu on Dec 19, 2011 3:20 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Get rid of the
CrystalReportViewer1.DataBind();
Rather than:
}
protected void Page_Unload(object sender, EventArgs e)
CrystalReportViewer1.Dispose();
protected void Page_Unload(object sender, EventArgs e)
report.Close();
report.Dispose();
if you want, you can use the viewer dispose, but not necessary
CrystalReportViewer1.Dispose();
{
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]
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.