Skip to Content
Former Member
Sep 10, 2008 at 10:36 AM

Load report failed.


Hi to all,

I'm using Visual studio 2005-C#,Asp.net2.0 and Crystal

Report 11.5 and SQL Server2005.

I added tables,fieldobject dynamicaly to the crystal

report, my problem is wheever i load the crystal report using Reportdocument object then i get the error as Load report failed.

Sample Code:

ReportDocument boReportDocument;

ISCDReportClientDocument boReportClientDocument;

//Create a new ReportDocument

boReportDocument = new ReportDocument();

// load the RPT file


//Access the ReportClientDocument in the ReportDocument (EROM bridge)

boReportClientDocument = boReportDocument.ReportClientDocument;

Whenever the Load method is calling then the following error has raised

Load report failed.

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)

at JBProduct.NQ.ExportToExcelController.AddTableToCrystalReport() in D:\projectname

I came to know we should give some permission to AspNet for the virtual directory but my client is not accept this solution.

I came to know one more solution we add the following code to web.config

<identity impersonate="true" userName="domainname/username" password="password" />

This username is Admin username of the server so my client is not accept this option also.

Experts please help me, how to solve this problem without giive any permission or add username.