1. Home
  2. Knowledge Base
  3. Software
  4. Browser Interface
  5. Reports
  6. Fixing Reports Error CS0016: Could not write to output file … Access is denied
  1. Home
  2. Knowledge Base
  3. Software
  4. Browser Interface
  5. Web Troubleshooting
  6. Fixing Reports Error CS0016: Could not write to output file … Access is denied

Fixing Reports Error CS0016: Could not write to output file … Access is denied

This error most commonly shows up when trying to open up reports, but there is an issue with file permissions on your Savance Workplace server.

This is typically caused when the application pool identity associated with the site is not a member of the IIS_IUSRS group for whatever reason. To add the app pool identity to the group, use the following steps:

  1. Right-click the Windows Start Menu icon, click Run, enter lusrmgr.msc, and click OK.
  2. Select Groups.
  3. Double click the IIS_IUSRS group.
  4. Click the Add… button.
  5. Click the Locations… button.
  6. Select your computer name (it should be at the top of the list) and click OK.
  7. In the text box below “Enter the object names to select”, enter: iis apppool\EIOBoard
  8. Click the Check Names button. If a Name Not Found dialog box appears, then verify that the app pool identity entered matches the app pool identity associated with the site. If a dialog box did not appear, then click OK.

The app pool identity is now a member of the IIS_IUSRS group, which should already have access to the Temporary ASP.NET Files directory. The app pool identity still can not write to the windows temp directory, however. To resolve this, you need to add the IIS_IUSRS group to the windows temp directory with read/write permissions:

  1. Right-click the Windows Start Menu icon, click Run, enter %windir%, and click OK.
  2. Right click on the Temp directory and select Properties.
  3. Click on the Security tab.
  4. Click the Edit… button.
  5. Click the Add.. button.
  6. Click the Locations… button.
  7. Select your computer name (it should be at the top of the list) and click OK.
  8. In the text box below “Enter the object names to select”, enter: iis_iusrs
  9. Click the Check Names button. If a Name Not Found dialog box appears, then check for typos. If a dialog box did not appear, then click OK.
  10. Select the added IIS_IUSRS group and in the Permissions for IIS_IUSRS box below, select: Read & execute, List folder contents, Read and Write.
  11. Click OK. A dialog box will be displayed stating that “You are about to change the permission settings on system folders, which can result in unexpected access problems and reduce security. Do you want to continue?”.
  12. Click Yes.
  13. Click OK.

You should be able to access reports perfectly fine now!

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support