How to grant identity ApplicationPoolIdentity read rights to folder within my site How to grant identity ApplicationPoolIdentity read rights to folder within my site asp.net asp.net

How to grant identity ApplicationPoolIdentity read rights to folder within my site


ICACLS <folder> /grant "IIS AppPool\nameoftheapppool":WRX did not work for me, it gave an error:

Invalid parameter "IIS AppPool\nameoftheapppool" 

but, the following did work:

ICACLS <folder> /grant "IIS AppPool\nameoftheapppool:WRX"


You can use the ICACLS tool for this.The usage herefore is:

(Command-prompt)> ICACLS <folder> /grant "IIS AppPool\<nameoftheapppool>":WRX

that should do the trick. ( If you replace the placeholders with the right values )

More information about ICACLS.exe can be found here http://support.microsoft.com/kb/919240