Hi, I am getting this exception when creating Crystal reports on Azure from my local host.
My code
loRpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, lsFolder);
Value for lsFolder
\\abc.file.core.windows.net\public\development\PDFs\abc.pdf
Please help me where and what breaks. Please note that I am reading rpt files from the same repository.
\\abc.file.core.windows.net\private\development\rpt\xyz.rpt
And I get the following error:
The system cannot find the path specified. Description: An unhandled exception occurred during the execution of the current web request. View the stack trace for more information about the error and where it originated from the code.
Exception Details: System.Runtime.InteropServices.COMException: The system cannot find the path specified.
Source Error:
249: { 250: lsReturn = lsPDFURL; 251: loRpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, lsFolder); 252:
loRpt.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, HttpContext.Current.Response, true, fsFileName); 253:}
:
[COMException (0x80004005): . ]
CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +2325
CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +1199
CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext) +385
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName) +443 SOReport.ExportSOReport(String fsSONumber, Boolean flgSave, String fsFileName, PDFLogDetail foPdfDetail) c:\VSO Project\WebSites\Main\PDFGenerator\App_Code\ExportSOReport.cs: 251
SOReport.Export( HttpRequest, Boolean canSave, String nexgenWebsiteURL, String sopoNumber, String databaseName) c:\VSO Project\WebSites\Main\PDFGenerator\App_Code\ExportSOReport.cs: 69
CrystalReportAccess.GenerateCrystalReport( HttpRequest) C:\VSO \WebSites\Main\PDFGenerator\App_Code\CrystalReportAccess.cs: 44
- logoninfo .
- System.Runtime.InteropServices.COMException: " . loRpt.ExportToHttpResponse().