S
schapopa
I have problem with Crystal Reports. When I Am trying to create PDF file
I get an error that I copied below.
The same application is installed on two other machines and everything
works fine. Error apears on line 62.
Error in File
C:\DOCUME~1\DS-7TY~1\ASPNET\USTAWI~1\Temp\temp_cc3ddba7-65df-4284-8fcf-7
24fd21dc878.rpt: Access to report file denied. Another program may be
using it.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details:
CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Error in
File
C:\DOCUME~1\DS-7TY~1\ASPNET\USTAWI~1\Temp\temp_cc3ddba7-65df-4284-8fcf-7
24fd21dc878.rpt: Access to report file denied. Another program may be
using it.
Source Error:
Line 60: CrystalReport1.ExportOptions.DestinationOptions =
DiskOpts
Line 61: DiskOpts.DiskFileName = Server.MapPath(".\") &
Session.SessionID & ".pdf"
Line 62: CrystalReport1.Export()
Line 63: Response.ClearContent()
Line 64: Response.ClearHeaders()
I get an error that I copied below.
The same application is installed on two other machines and everything
works fine. Error apears on line 62.
Error in File
C:\DOCUME~1\DS-7TY~1\ASPNET\USTAWI~1\Temp\temp_cc3ddba7-65df-4284-8fcf-7
24fd21dc878.rpt: Access to report file denied. Another program may be
using it.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details:
CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Error in
File
C:\DOCUME~1\DS-7TY~1\ASPNET\USTAWI~1\Temp\temp_cc3ddba7-65df-4284-8fcf-7
24fd21dc878.rpt: Access to report file denied. Another program may be
using it.
Source Error:
Line 60: CrystalReport1.ExportOptions.DestinationOptions =
DiskOpts
Line 61: DiskOpts.DiskFileName = Server.MapPath(".\") &
Session.SessionID & ".pdf"
Line 62: CrystalReport1.Export()
Line 63: Response.ClearContent()
Line 64: Response.ClearHeaders()