ASP.NET, CrystalReports, Export to pdf, "Access denied C:\Windows\Temp\rpt345F.. file in use RRS feed

  • Question

  • User-1562307208 posted

    I have developed my website in VS-2005 and built in CrystalReports.

    I found that after deploying the website to Windows2008Server I am unable to use the 'Export' button on CrystalReport to export to other format (excel, word, pdf) and I am getting an Access denied file in use error.

    Export buttons work fine when I deploy it to my local machine with XPSP3

    I have created a Custom Websetup that will prompt Machine Logon credentials & connectionString. I use machine logon credentials to 'Impersonate' in web.config.

    I gave full permission to IUSR & IIS_IUSR account on Windows Temp and after Websharing this folder is showing up and accessible on the FileServer. Also the Windows Account used to Impersonate is an Administrator account.

    One thing I want to try is to change the output directory of the reports to a subdirectory withing the root folder. But I am not sure if it would work. So I would like to have your valuable advice on this issue. Thanks !

    Friday, July 22, 2011 12:44 PM

All replies

  • User221175343 posted


               I think this Link will help you.

    Friday, July 22, 2011 1:55 PM
  • User1196771204 posted

    hi sujitP,

    May I please know how did you host your reports? Did you have full control on the server? 

    Monday, July 25, 2011 2:24 AM