I have a report which needs to be run via a webpage. I have used the export sample that comes with the crystal reports developers guide (CS_Web_RDObjMod_Export) as a basis to write my own export functions.
The problem I am having is intermittent. By that I mean I can export to several format types without getting any errors but once I get the error message, I have to stop, close the browse and start again.
The error message I get is the following in .NET:
"CrystalDecisions.CrystalReports.Engine.InvalidArgumentException:
Error in File C:\\DOCUME~1\\DEVELO~1\\ASPNET\\LOCALS~1\\Temp\\{BE3045C4-8D58-43CD-B80E-F1E29FB2DCA1}.rpt:\nInvalid export DLL or export format. ---> System.Runtime.InteropServices.COMException (0x800002B4):
Error in File C:\\DOCUME~1\\DEVELO~1\\ASPNET\\LOCALS~1\\Temp\\{BE3045C4-8D58-43CD-B80E-F1E29FB2DCA1}.rpt:\nInvalid export DLL or export format.
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()
at PurchaseLedger.ContractExposureReport.ConfigureCrystalReports() in c:\\inetpub\\ 88"
The problem I am having is intermittent. By that I mean I can export to several format types without getting any errors but once I get the error message, I have to stop, close the browse and start again.
The error message I get is the following in .NET:
"CrystalDecisions.CrystalReports.Engine.InvalidArgumentException:
Error in File C:\\DOCUME~1\\DEVELO~1\\ASPNET\\LOCALS~1\\Temp\\{BE3045C4-8D58-43CD-B80E-F1E29FB2DCA1}.rpt:\nInvalid export DLL or export format. ---> System.Runtime.InteropServices.COMException (0x800002B4):
Error in File C:\\DOCUME~1\\DEVELO~1\\ASPNET\\LOCALS~1\\Temp\\{BE3045C4-8D58-43CD-B80E-F1E29FB2DCA1}.rpt:\nInvalid export DLL or export format.
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()
at PurchaseLedger.ContractExposureReport.ConfigureCrystalReports() in c:\\inetpub\\ 88"