ReportDocument.ExportToDisk error More options
Hi,
I have lot many report documents in rpt format.
I have developed a application that reads the rpt files, convert it
into PDF format and exports the PDF file onto network folder.
The process works fine for few thousand rpt files but later it starts
failing with follwing error
"System.IO.IOException: The system detected a possible attempt to
compromise security. Please ensure that you can contact the server
that authenticated you.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at CrystalDecisions.CrystalReports.Engine.FormatEngin e.W(Stream ,
String )
at
CrystalDecisions.CrystalReports.Engine.FormatEngin e.Export(ExportRequestConÂtext
reqContext)
at
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.ExportToDisk(ExportFoÂrmatType
formatType, String fileName)"
Please note that final destination filepath is not on local drive. It
is a UNC file path (e.g \\serverName\FolderName\filename.pdf)
I tried searching on google for this error. But the unable to find
good solution.
Also note that when I re-trigger the application it again works fine
for few thousand files and then again fail.
Please suggest a soluion
thanks in advance
|