Access to report files is denied. Other programs may be using it.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.