I'm using Windows Server 2008 R2.
A WCF service running in IIS under ApplicationPoolIdentity needs permission to write to a folder.
This was fine when the WCF service was using the built-in Application Pool named "DefaultAppPool," which runs under the identity ApplicationPoolIdentity. I simply gave the user "IIS APPPOOL\DefaultAppPool" write permission to the folder. The user "IIS APPPOOL\DefaultAppPool" does not show up in the windows explorer security gui, but when the name is typed in and the "Check Names" button is clicked Windows recognizes the user and assigns the permissions correctly.
I had to change from DefaultAppPool to an application pool that I created, "MyAppPool." MyAppPool is identical to DefaultAppPool in all particulars except the name. It runs under the identity ApplicationPoolIdentity. However, the Windows security gui will not allow me to give "IIS APPOOL\MyAppPool" permissions to the folder. It tells me the object cannot be found.
Is there any way I can give "MyAppPool," which runs under ApplicationPoolIdentity, permission to write to a folder?