anyone seen this error before
No error.
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: System.Runtime.InteropServices.COMException: No error.
Source Error:
Line 856: {
Line 857: Reports.measurements myReport = new performancetrack.Reports.measurements();
Line 858: myReport.Database.Tables[0].SetDataSource(localDS);
Line 859: myReport.Load();
Line 860: myReport.SetDataSource(localDS.Tables[0]);
Source File: c:\inetpub\wwwroot\performancetrack\dopages\main.a spx.cs Line: 858
Stack Trace:
[COMException (0x80000000):
No error.]
CrystalDecisions.ReportAppServer.ClientDoc.ReportC lientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.Open(Object& DocumentPath, Int32 Options) +72
CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.EnsureDocumentIsOpened() +218
[Exception: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.EnsureDocumentIsOpened() +269
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +765
CrystalDecisions.CrystalReports.Engine.ReportClass .Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) +417
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.v() +74
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.get_Database() +32
performancetrack.doPages.Main.CreateCrystalReportC allAcceptance() in c:\inetpub\wwwroot\performancetrack\dopages\main.a spx.cs:858
performancetrack.doPages.Main.lnkCallAcceptance_Cl ick(Object sender, EventArgs e) in c:\inetpub\wwwroot\performancetrack\dopages\main.a spx.cs:934
System.Web.UI.WebControls.LinkButton.OnClick(Event Args e) +108
System.Web.UI.WebControls.LinkButton.System.Web.UI .IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1277
this is local on my machine. i moved this project on local so i can work with it. everything works dandy on the dev box. but i have an issue with this report. i get the above error only on this report.i have 3 links and the first one works fine,loads the report fine into the web page, the second one does not. like i said it works fine on the dev box. i made sure the temp folder it is creating the tem report has the rights to me and network. it is crazy getting the error on
Line 858: myReport.Database.Tables[0].SetDataSource(localDS);
i have the same code for all, the rest are working...
this is the code
if (localDS.Tables[0].Rows.Count >0)
{
Reports.measurements myReport = new performancetrack.Reports.measurements();
myReport.Database.Tables[0].SetDataSource(localDS);
myReport.Load();
myReport.SetDataSource(localDS.Tables[0]);
this.rptManagement.ReportSource = myReport;
this.rptManagement.DataBind();
}
else
this.rptManagement.Visible =false;
works fine for the first one. any ideas please?
thank you
|