Print Page | Close Window

Load Report Failed

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Writing Code
Forum Discription: .NET 2003 programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=851
Printed Date: 28 Apr 2024 at 4:46am


Topic: Load Report Failed
Posted By: Dave P
Subject: Load Report Failed
Date Posted: 14 Jun 2007 at 6:35am

OS:                        Windows 2000

.NET:                     1.1.4322

Dev Environment:  Visual Studio .NET 2003 Professional
 
Crystal:                  XI Developer Edition
 
I have created a simple ASP.NET app to simply load a report and display it in the viewer. This all works fine on all machines in my office apart from a Windows 2000 machine that is set up as a web server. Every time Report.Load(sReportName) is called it exceptions with the following:
 
----------------------------------------------------------------------------------------------
 
Load report failed.         (Exception.Message)

Failed to open report.    (Exception.InnerException.Message)

at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod) at CrystalWebTest.WebForm1.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\crystalwebtest\webform1.aspx.cs:line 57

c:\inetpub\wwwroot\ASPTimesheet2.20\WebReporting\Reports\Tm_Staff_Details.rpt
 
----------------------------------------------------------------------------------------------
 
At the bottom you will see the absolute path for the report on the server, which is correct. I've checked and the ASP.NET account has sufficient read\write privelages for the temp directory on C. One thing to note is that the majority of the reports I'm trying to load are Crystal 9, but they all work fine on other machines using the same crystal runtime and .net app.
Any ideas would be greatly appreciated.



Print Page | Close Window