I have an application that is getting a System.UnauthorizedAccessException error when it tries to read from the file system.
I looked at the app pool and I see that is using Network Service for it's identity. The IIS application is allowing anonymous authentication using an existing account, lets call it IUSR-MYSERVER. It also has Integrated Windows authentication enabled.
If I go to the folder in question and Add Everyone with Read+Execute permissions the error goes away. But if I add IUSR-MYSERVER or NETWORK SERVICE with the same permissions, I still get the same error.
When I look at the error's entry in my Event Log it has the User as N/A.
What user is my application trying to access the file system as? I assume it would be bad to just use Everyone?