Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

boReportDocument.Load(Server.MapPath("~//Success//CR_VerticalDesign.rpt"));

//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.

replied

This is Microsoft Security issue. There is no way around it, you would be considered a trojan or virus by working around MS's security, that's way the cusomer id blocking your app.

You need to discuss with the customer what a usable security level would be to enable users have access to your application.

Possibly creating a new "Crystal" user you can run your app in and create DB access that is limited to what the app requires only.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question