SAP Knowledge Base Article - Public

1767684 - Error - CrystalReportsException: Load report failed / Invalid file name

Symptom

  • Web application using Crystal Reports SDK for Visual Studio
  • When application is deployed to a server where the root of the C: drive is completely locked down an error is thrown:

 

[COMException (0x800001fb): Invalid file name.]
   CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +262
 
[CrystalReportsException: Load report failed.]
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +325
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +894
   CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport() +113
   CrystalDecisions.CrystalReports.Engine.ReportDocument.get_DataDefinition() +56
   CrystalDecisions.CrystalReports.Engine.ReportDocument.get_ParameterFields() +85

Environment

  • Crystal reports for Visual Studio 2010
  • Visual Studio 2010

Cause

  • The Crystal reports engine at minimum requires List Folder / Read Data permissions on the root of the C: drive

Resolution

  • Give the process List Folder / Read Data permissions to the root of the C: drive

Keywords

CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 Crystal Reports for .NET Framework 4.0 crforvs 13  Crystal Reports for Visual Studio 2010 access , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports, developer version for Microsoft Visual Studio ; SAP Crystal Reports, version for Visual Studio .NET 2005 ; SAP Crystal Reports, version for Visual Studio .NET 2008