I have encountered this error message while trying to print the report.
The error message is as below:
Query Engine Error: 'C:\WINDOWS\TEMP\temp_6b2987aa-9743-44b7-8a63-a14f4a186b44.rpt'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.DataSourceException: Query Engine Error: 'C:\WINDOWS\TEMP\temp_6b2987aa-9743-44b7-8a63-a14f4a186b44.rpt'
Source Error:
Line 745: DiskOpts.DiskFileName = dr["DocHandling"].ToString() + "\\" + Session["LoginId"].ToString() + "-" + Session.SessionID.ToString() + "report01." + strCRFormat;
Line 746: oRpt.ExportOptions.DestinationOptions = DiskOpts;
Line 747: oRpt.Export();
Line 748: tmpStr = "<script language=javascript>window.open('" + dr["PRS_SMURL"].ToString() + "/DocHandling/" + Session["LoginId"].ToString() + "-" + Session.SessionID.ToString()+"report01." + strCRFormat + "'); </script>";
Line 749: Response.Write(tmpStr);
Source File: c:\inetpub\wwwroot\ecssm\modules\jobsheets\jobsheetdetails.ascx.cs Line: 747
Stack Trace:
[DataSourceException: Query Engine Error: 'C:\WINDOWS\TEMP\temp_6b2987aa-9743-44b7-8a63-a14f4a186b44.rpt']
.F(String , EngineExceptionErrorID
) +540
.A(Int16 , Int32 ) +537
CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext) +469
CrystalDecisions.CrystalReports.Engine.FormatEngine.Export() +107
CrystalDecisions.CrystalReports.Engine.ReportDocument.Export() +67
ECSSM.modules.JobSheets.JobSheetDetails.BindCrystalReport() in c:\inetpub\wwwroot\ecssm\modules\jobsheets\jobsheetdetails.ascx.cs:747
ECSSM.modules.JobSheets.JobSheetDetails.btnPrint_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\ecssm\modules\jobsheets\jobsheetdetails.ascx.cs:664
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
Anyone know what is causing this error? Please help as I have no idea on how to solve it?
Thank you very much