This problem occurs during the report export test today. Access to the report file is denied. Other programs may be using it to search for the problem.
Add the network service aspnet read/write permission to the windows temp directory.
There are minor differences in the development of the asp.net program in Windows XP/Windows Server 2003, especially in the account and permission allocation for running the asp.net program. The following uses errors frequently occurring in the running of the crystal report as an example:
Error details: CrystalDecisions. CrystalReports. Engine. LoadSaveReportException: file C:/WINNT/TEMP/error in temp_6516f6db-0f2c-4ed4-8e26-2cf6b2ff5bf9.rpt:Access to report files is denied.. Other programs may be using it.
This problem is caused by the failure to write the asp.net program to the target directory C:/WINNT/TEMP: /WINNT/TEMP write permission is granted to the windows User Account running asp.net. For windows xp, write permission is granted to the account ASPNET. For windows server 2003, the write permission is granted to the account ASPNET and network service.
In the future, when considering the user permissions of running the asp.net program under windows server 2003, do not forget the network service, not just ASPNET.