473,756 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:
CrystalDecision s.CrystalReport s.Engine.LoadSa veReportExcepti on: Load report
failed.

Source Error:

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

Source File: c:\inetpub\wwwr oot\crtest\webf orm1.aspx.cs Line: 32

Stack Trace:

[LoadSaveReportE xception: Load report failed.]
.I(String , EngineException ErrorID )
.E(String , Int32 )
CrystalDecision s.CrystalReport s.Engine.Report Document.Load(S tring
reportName, OpenReportMetho d openMethod, Int16 parentJob)
CrystalDecision s.CrystalReport s.Engine.Report Document.Load(S tring
reportName)
crtest.WebForm1 .Page_Load(Obje ct sender, EventArgs evt) in
c:\inetpub\wwwr oot\crtest\webf orm1.aspx.cs:32
System.Web.UI.C ontrol.OnLoad(E ventArgs e)
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.P age.ProcessRequ estMain()
----------
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\\di r\\report.rpt",
FileMode.Open, FileAccess.Read );
fs.Close();

ReportDocument oRpt = new ReportDocument( );

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

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

CrystalReportVi ewer1.ReportSou rce = oRpt;

Some suggestion ?

Thanks in advance

Simon.
Nov 19 '05 #1
0 3153

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

Similar topics

0
8778
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 for a Crystal Report. The method has a single argument which represents a parameter required by the Stored Procedure. When I generate the report in Crystal and run it using the class I built, it works fine. I've tried it with parameters and...
0
1665
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 development machine and on my client's production server. The third report is reliable on my development machine, but not on the production server. I can think of nothing different about this third report that would cause it to be so fragile. ...
3
15037
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 the remote SQL DB and create a report on one of the tables. Every time I do it, I get the Logon Failed error (CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed) The internet search shows that this is a common problem,...
3
2884
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 via a webform and the CrystalViewer Web Component. First of all, I have been using Trusted Connections so far (for data access) and really do not want to have some static login information in my web app. but most of the documents so far have...
2
3296
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 Report Viewer, I get a "Load Report Failed" error, and I'm not sure what I can do to resolve it. I know it's not the connection to the data -- I'm able to get a datagrid to display the data just fine after filling a dataset. I tried searching the...
1
3291
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 parameters and then exports the file to disk. I export around 5000 reports a day, in about 3 hours (nightly runs of the day's transactions), but sometimes, without warning or any debug info, the application locks-up using 100% of the processor...
2
8689
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 .rpt (on the file system) to the control's ".ReportSource" property. i do this because i like to move new versions of the reports w/o having to rebuild the site. then i pass in filter criteria to the control's ".SelectionFormula"
1
2275
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 InnerException's Source is "Analysis Server", it's message is "Failed to open report." (little redundant??) and under the TargetSite, the Module is {CrystalDecisions.ReportAppServer.ClientDoc.dll}. Google searches and the error lookup utility packaged with VS...
0
1785
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 rptDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument Dim strReportPath As String = "CR_Salary.rpt" rptDocument.Load(strReportPath, CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy) ...
0
10031
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9869
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9838
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9708
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8709
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5140
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5302
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3354
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.