Works on Development box. Windows 7 64bit.
Not working on Deployed Server 2012 R2 64bit
Crystal Reports version 13_0_13.
2015-06-08 11:21:25,692 [7] FATAL DecalPrintWCWindowsService.clsDecal [(null)] - CreateDecalPDF:
System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
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.ReportDocument.Export(ExportOptions options)
at DecalPrintWCWindowsService.clsDecal.CreateDecalPDF()
Code Snippet:
ReportDocument objCR_ReportDoc = new ReportDocument();
DiskFileDestinationOptions objDiskFileDestinationOptions;
ExportOptions objExportOptions;
objCR_ReportDoc.Load(sTemplatePath);
objDiskFileDestinationOptions = new DiskFileDestinationOptions();
objExportOptions = objCR_ReportDoc.ExportOptions;
objExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
objExportOptions.ExportFormatOptions = null;
objExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
objDiskFileDestinationOptions.DiskFileName = msPDFPath + PDFFileName;
WriteLine(msPDFPath + PDFFileName);
objExportOptions.ExportDestinationOptions = objDiskFileDestinationOptions;
objCR_ReportDoc.Export(objExportOptions);
objCR_ReportDoc.Dispose();
It is exploding (throwing exception) at the second to last line... objCR_ReportDoc.Export(objExportOptions);
I have been researching this issue for several days, tried most all suggestions from this site and others, to no avail.
Any thoughts?
John
Request clarification before answering.
Ludek,
Thanks for the response... I have since changed up the environment to crystal 13_0_14. (that did not fix the problem though)
Anyway, I have run ProcMon on both my dev and deployed machines and have reviewed the logfiles for both.
There does not seem to be anything that jumps out at me as a problem. The biggest thing that I notice is that on the system that works, there are entries for the .pdf being manipulated in the directory it is supposed to show up in. In the system that does not work, the entries are missing, kinda like my file.
Dev system entries...
.
.
.
8:22:19.5929430 AM DecalPrintWCWindowsService.exe 6644 CreateFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF SUCCESS Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:22:19.5929670 AM DecalPrintWCWindowsService.exe 6644 QueryNetworkOpenInformationFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF SUCCESS CreationTime: 5/28/2015 10:50:27 AM, LastAccessTime: 6/9/2015 4:08:47 PM, LastWriteTime: 6/9/2015 4:08:47 PM, ChangeTime: 6/9/2015 4:08:47 PM, AllocationSize: 4096, EndOfFile: 4096, FileAttributes: D
8:22:19.5929782 AM DecalPrintWCWindowsService.exe 6644 CloseFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF SUCCESS
8:22:19.5931244 AM DecalPrintWCWindowsService.exe 6644 CreateFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:22:19.5932316 AM DecalPrintWCWindowsService.exe 6644 QueryDirectory C:\Windows Service\Watercraft\DecalPrint_WC\PDF\* SUCCESS Filter: *, 1: .
8:22:19.5932905 AM DecalPrintWCWindowsService.exe 6644 QueryDirectory C:\Windows Service\Watercraft\DecalPrint_WC\PDF SUCCESS 0: .., 1: 2256BT_01_20150609_1430391390.pdf, 2: 2256BT_01_20150609_1459323212.pdf, 3: 2256BT_01_20150609_1608438383.pdf
8:22:19.5933289 AM DecalPrintWCWindowsService.exe 6644 QueryDirectory C:\Windows Service\Watercraft\DecalPrint_WC\PDF NO MORE FILES
8:22:19.5933478 AM DecalPrintWCWindowsService.exe 6644 CloseFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF SUCCESS
8:22:19.5934828 AM DecalPrintWCWindowsService.exe 6644 CreateFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF\2256BT_01_20150609_1430391390.pdf SUCCESS Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:22:19.5935071 AM DecalPrintWCWindowsService.exe 6644 QueryNetworkOpenInformationFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF\2256BT_01_20150609_1430391390.pdf SUCCESS CreationTime: 6/9/2015 2:30:47 PM, LastAccessTime: 6/9/2015 2:30:47 PM, LastWriteTime: 6/9/2015 2:30:47 PM, ChangeTime: 6/9/2015 2:31:29 PM, AllocationSize: 53248, EndOfFile: 53007, FileAttributes: A
8:22:19.5935180 AM DecalPrintWCWindowsService.exe 6644 CloseFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF\2256BT_01_20150609_1430391390.pdf SUCCESS
8:22:19.5936742 AM DecalPrintWCWindowsService.exe 6644 RegQueryKey HKLM SUCCESS Query: HandleTags, HandleTags: 0x0
.
.
.
Deployed server entries...
.
.
.
3:48:19.7256629 PM DecalPrintWCWindowsService.exe 792 CreateFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF SUCCESS Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
3:48:19.7257271 PM DecalPrintWCWindowsService.exe 792 QueryNetworkOpenInformationFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF SUCCESS CreationTime: 6/4/2015 3:16:37 PM, LastAccessTime: 6/4/2015 3:16:37 PM, LastWriteTime: 6/4/2015 3:11:26 PM, ChangeTime: 6/4/2015 3:16:37 PM, AllocationSize: 0, EndOfFile: 0, FileAttributes: D
3:48:19.7257399 PM DecalPrintWCWindowsService.exe 792 CloseFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF SUCCESS
3:48:19.7259601 PM DecalPrintWCWindowsService.exe 792 CreateFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
3:48:19.7260828 PM DecalPrintWCWindowsService.exe 792 QuerySecurityFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF SUCCESS Information: Attribute
3:48:19.7260997 PM DecalPrintWCWindowsService.exe 792 QueryDirectory C:\Windows Service\Watercraft\DecalPrint_WC\PDF\* SUCCESS Filter: *, 1: .
3:48:19.7261772 PM DecalPrintWCWindowsService.exe 792 QueryDirectory C:\Windows Service\Watercraft\DecalPrint_WC\PDF SUCCESS 0: ..
3:48:19.7262029 PM DecalPrintWCWindowsService.exe 792 QueryDirectory C:\Windows Service\Watercraft\DecalPrint_WC\PDF NO MORE FILES
3:48:19.7262183 PM DecalPrintWCWindowsService.exe 792 CloseFile C:\Windows Service\Watercraft\DecalPrint_WC\PDF SUCCESS
3:48:19.7270497 PM DecalPrintWCWindowsService.exe 792 Thread Create SUCCESS Thread ID: 2772
3:48:19.7273664 PM DecalPrintWCWindowsService.exe 792 Thread Exit SUCCESS Thread ID: 2772, User Time: 0.0000000, Kernel Time: 0.0000000
.
.
.
Anything else to check?
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.