Problem with Crystal Reports


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()
 
Ad

Advertisements

E

Elton Wang

Hi schapopa,

I think the problem is you don't give (or not enough )
permissions for your .NET Web account (ASPNET in WINDOWS
2000) to access Temp folder.

HTH,

Elton Wang
(e-mail address removed)
-----Original Message-----
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.LoadSaveReportExcep tion: 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 =
 
S

schapopa

Thank you very much for your help. ASPNet had a permission on the
folders. We found out that administrator gave hidden access to whole
hard drive. When we took this out our problem was solved.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top