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 October 18th, 2005, 10:39 AM
mh mh is offline
Authorized User
 
Join Date: Mar 2005
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.
        InitializeComponent()
        ReportViewer.DataBind()
        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.


 
Old June 7th, 2006, 05:19 PM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
 
Old June 14th, 2006, 07:06 AM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.


 
Old October 22nd, 2006, 09:08 AM
Registered User
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

skofroth@hotmail.com
************************************************** **
************************************************** **
PROBLEMS WITH RUNNING CRXI R2 IN VISUAL STUDIO 2005
************************************************** **
************************************************** **
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.










Similar Threads
Thread Thread Starter Forum Replies Last Post
load report failed zaghmout Crystal Reports 2 December 3rd, 2007 05:04 AM
Load Report Failed craigbtx Crystal Reports 4 December 18th, 2006 09:15 PM
Load Report Failed - Invalid Table Number rstaubitz Crystal Reports 0 December 28th, 2005 10: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





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