473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Crystal Reports: Load report failed error.

Hi

I try to open a CR report file located on the network path from a web form
developed with vs2003 and CR for Visual Studio, but the Load method of
ReportDocument object always return error.

---------------------
Load report failed.
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.LoadSaveRep ortException: Load report
failed.

Source Error:

Line 32: oRpt.Load( "\\\\server\\dir\\report.rpt");

Source File: c:\inetpub\wwwroot\crtest\webform1.aspx.cs Line: 32

Stack Trace:

[LoadSaveReportException: Load report failed.]
.I(String , EngineExceptionErrorID )
.E(String , Int32 )
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Load(String
reportName, OpenReportMethod openMethod, Int16 parentJob)
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Load(String
reportName)
crtest.WebForm1.Page_Load(Object sender, EventArgs evt) in
c:\inetpub\wwwroot\crtest\webform1.aspx.cs:32
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
----------
I have tryed to use impersonating setting the web.config file but I still
have a problem.
If I copy locally the CR report file and try to open it the web application
work fine, I try also to open file using FileStream and work.

sample code:

// this work
FileStream fs = new FileStream( "\\\\server\\dir\\report.rpt",
FileMode.Open, FileAccess.Read );
fs.Close();

ReportDocument oRpt = new ReportDocument();

// this generate error
oRpt.Load( "\\\\server\\dir\\report.rpt");

// this work
oRpt.Load( "c:\\Temp\\report.rpt");

CrystalReportViewer1.ReportSource = oRpt;

Some suggestion ?

Thanks in advance

Simon.
Nov 19 '05 #1
0 3092

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: stephan | last post by:
I know that this has been beaten to death but I can't seem to resolve my issues (I have 2 of them). I have created a class that exposes a public method which returns a datatable as a datasource...
0
by: Corbin | last post by:
I've been going in circles on this for a week. Please help: I'm running a web app with ASP.NET 1.1 and Crystal Reports for .NET. The app has three reports, two of which are reliable both on my...
3
by: Milan Todorovic | last post by:
Hello, I need help. I have experience in ASP.NET programming, but this is my first dealing with Crystal Reports. I'm trying to make the most basic report purely for testing purposes: connect to...
3
by: Shawn H. Mesiatowsky | last post by:
I have come across lots of information regarding this, but nothing seems to work. I have created a Crystal Report that access's a SQL server backend for the data, and I want to display the report...
2
by: Jeff_Mac | last post by:
Hi there. I'm a bit of a newbie, and I would appreciate any help that anyone can give me on an error I'm getting with Crystal Reports. Every time I attempt to view a report using the Crystal...
1
by: steveberwick | last post by:
**Using Visual Studio 2005 and Crystal Reports XI Release 2 Developer Edition. I currently have a multi-threaded C# application that loads a Crystal Report at runtime, fills out the necessary...
2
by: matt | last post by:
hello, i have an .RPT file that i am using to load a report via the ASP.NET CrystalReportViewer control. i dont include my .RPTs as embedded resources...instead i load the absolute path of the...
1
by: Tomizechsterson | last post by:
I have an app, that when it calls ReportDocument.Load(filename), it throws an Exception that just says "Load report failed." Upon further investigation, the ErrorCode is -2147483136, the...
0
by: bhappy | last post by:
Hai All, Im genarating a report using crystal reports, i have one crystal report page name "cr_salary.rpt" when im accessing this page i got an error load report failed.. vb.net code: Dim...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.