Load Report Failed when using impersonation

Bennyj

Newcomer
Joined
Mar 30, 2004
Messages
1
I have a problem in Loading Crystal report(9.1) in a ASP.NET web aplication.(using Framework 1.1) I am populating the DataSet for the report using a COM+ component running on another Machine, When I try to access the COM+ component, it gave an error access Denied. So I added <identity impersonate="true"> with userName and password attributes in web.config. Now Iam able to access COM+ component but When trying to load crystal report I am getting an Error "Load Report Failed". Both the servers (COM+ and webserver) are Windows 2003. I tried giving full rights for the rpt file for all accounts. But no use. I found everything is working fine with a sample web application( having no identity tag in web.config) not using com+, instead uses a local xml file to populate dataset. Why crystal report is giving error when impersonation is set to true?
Please Help.

The relevant part of Code I am Using
---------------------------------------------
TestManagementReport.reports.CrystalReport1 rptMgntRpt = new TestManagementReport.reports.CrystalReport1();
rptMgntRpt.SetDataSource(dsManagementXSD); // Gives error on this lone.
crvMngtReports.ReportSource = rptMgntRpt;
crvMngtReports.Visible = true;

Error
-------------------------------------------
CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Load report failed. at .F(String  , EngineExceptionErrorID  ) at .B(String , Int32 ) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(Object value) at TestManagementReport.WebForm1.ShowHTML() in c:\inetpub\wwwroot\testmanagementreport\webform1.aspx.cs:line 158
 
Back
Top