Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 30th, 2005, 11:05 AM
Registered User
 
Join Date: Dec 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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






Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
[Resolved] Error calling a sp - parameter error snufse .NET Framework 2.0 2 February 12th, 2008 04:46 PM
Parse error: syntax error, unexpected T_STRING ginost7 Beginning PHP 1 November 9th, 2007 02:51 AM
Phile Page error, visual studio error reps BOOK: ASP.NET Website Programming Problem-Design-Solution 0 September 27th, 2003 10:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.