Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old October 18th, 2005, 10:39 AM
mh mh is offline
Authorized User
Join Date: Mar 2005
Location: , , .
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default Load Report Failed Error

Hi everyone.

I'm trying to load a Crystal Report into a vb.net page. I have a reportviewer on the aspx page and I have the following code:

Public Class TyDet
    Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub
    Protected WithEvents ReportViewer As CrystalDecisions.Web.CrystalReportViewer

    'NOTE: The following placeholder declaration is required by the Web Form Designer.
    'Do not delete or move it.
    Private designerPlaceholderDeclaration As System.Object

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: This method call is required by the Web Form Designer
        'Do not modify it using the code editor.
        End Sub

#End Region

In addition, I have set the databinding to the name of the report which is also located on the server. It shows up in design view, but once it is executed, it gives this error:

Server Error in '/CPS' Application.

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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[LoadSaveReportException: Load report failed.]
   CrystalDecisions.Web.ReportAgentBase.m() +280
   CrystalDecisions.Web.ReportAgent.get_RequestContex t() +10
   CrystalDecisions.Web.ReportAgent.get_() +4
   CrystalDecisions.Web.ReportAgent.{(Boolean C) +81
   CrystalDecisions.Web.CrystalReportViewer.OnPreRend er(EventArgs e) +143
   System.Web.UI.Control.PreRenderRecursiveInternal() +62
   System.Web.UI.Control.PreRenderRecursiveInternal() +125
   System.Web.UI.Control.PreRenderRecursiveInternal() +125
   System.Web.UI.Page.ProcessRequestMain() +1499

Can someone please tell me what the problem is? Thank you.

Reply With Quote
  #2 (permalink)  
Old June 7th, 2006, 05:19 PM
Registered User
Join Date: Jun 2006
Location: Phoenix, AZ, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

I had this problem also.

To solve it I had to allow the report file to be shared to the Web in the IIS.

Hope this helps.
Reply With Quote
  #3 (permalink)  
Old June 14th, 2006, 07:06 AM
Registered User
Join Date: Jun 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

What do you mean exactly by "allow it to be shared to the web in IIS"?

I'm having this same issue...everything works in the designer preview, and it also works in ASP.net Development Server (even in the browser), just not when I'm using IIS.

Reply With Quote
  #4 (permalink)  
Old October 22nd, 2006, 09:08 AM
Registered User
Join Date: Oct 2006
Location: Kernersville, NC, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

************************************************** **
************************************************** **
************************************************** **
************************************************** **
Getting Load report failed and/or The Report Application Server failed error message?
************************************************** **
************************************************** **

How I FINALLY (after many days) fixed it.
************************************************** **

Uninstall ANY/every version of crystal and / or Business Objects software
through add/remove programs that may exist on your computer.

Uninstall vs.net 2005 through add/remove programs and all of its components.

Uninstall ANY merge module installations you have done.

The command below, done from the command prompt, will generate
a text file listing all installed, shared dll's that are
listed in the registry (Good for seeing just what is going on
in your system).

REG query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\SharedDLLs >dll.txt

Looking at the dll.txt generated in the step above, you will
notice there are still numerious Business Objects, and/or Crystal reports
dll's registered (Even though everything is uninstalled).

After uninstalling anything/everything dealing with
BO or Crystal, manually delete anything remaining of these two
from Program files, and \program files\common.

Once you manually delete anything/everything dealing with
BO or Crystal, download and run SHAREDLL.

Running sharedll.exe (from a COMMAND PROMPT) will scan the registry for all
registered, shared dll's.

It will check to see if the file (DLL) that is registered actually exists.
If not, you are given the option to delete the entry or DELETE ALL
bad entries.

Once you have deleted all bad registry dll entries, reboot (no big deal deleting these,
cause the files don't exist ANYWAY!).

Reinstall vs.net 2005
Reinstall crystal reports crxir2 developer

Everything now works.

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
load report failed zaghmout Crystal Reports 2 December 3rd, 2007 04:04 AM
Load Report Failed craigbtx Crystal Reports 4 December 18th, 2006 08:15 PM
Load Report Failed - Invalid Table Number rstaubitz Crystal Reports 0 December 28th, 2005 09:07 AM
Load Report Failed Error mh .NET Framework 2.0 2 October 18th, 2005 11:10 AM
Load report failed v_ganeshraju Crystal Reports 0 September 20th, 2004 08:51 PM

All times are GMT -4. The time now is 11:53 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.