Skip to main content

How to Grant an IIS Application Pool Access to a Folder

This article explains how to grant a specific Internet Information Services (IIS) Application Pool permission to access a folder on a Windows Server. This task is performed by a Windows Server Administrator to ensure that the web application can read...

This article explains how to grant a specific Internet Information Services (IIS) Application Pool permission to access a folder on a Windows Server. This task is performed by a Windows Server Administrator to ensure that the web application can read or write files as required by its functionality.

Before you begin

You will need:

  • Windows Server Administrator access

  • The specific path to the folder (e.g., C:\inetpub\wwwroot\app_data)

  • The name of the IIS Application Pool associated with the website

Granting folder access to an Application Pool

To ensure the web application can access the necessary files, you must grant permissions to the specific identity used by the Application Pool rather than a general user account.

  1. Open File Explorer and navigate to the folder you wish to share with the application.

  2. Right-click the folder and select Properties.

  3. Select the Security tab and click Edit.

  4. Click Add to bring up the "Select Users, Computers, Roles, and Groups" dialog.

  5. In the object names box, type the name of the Application Pool (e.g., MyAppPoolName) and click Check Names.

    • Note: If the Application Pool is local to the server, you may need to type IIS AppPool\YourPoolName.

  6. Click OK.

  7. Select the Application Pool from the list and click Edit.

  8. Select the appropriate permission level:

    • Read: Allows the application to view and open files.

    • Modify: Allows the application to read, write, and delete files.

  9. Click OK on the Security tab.

  10. Click OK on the Properties window to apply the changes.

Confirm the result

  • The application should now be able to access the files within the specified folder without returning "Access Denied" errors.

  • You can verify this by attempting to perform an action in the application that requires writing to or reading from that specific directory.

Troubleshooting

"Access Denied" errors persist after granting permissions

If the application still cannot access the folder, verify the following:

  • Correct Identity: Ensure you granted permissions to the specific Application Pool identity (e.g., IIS AppPool\Name) and not a different user or the "IUSR" account.

  • Inheritance: Ensure the permissions are inherited by all subfolders and files within the target directory. You can check this in the Security tab under Advanced.

  • File System Permissions: Ensure there are no specific "Deny" permissions overriding the "Allow" permissions you just granted.

Limitations

This procedure only grants permissions at the file system level. If the application requires specific network share permissions or specialized permissions beyond standard read/write access, additional configuration may be required.

Did this answer your question?