That is true if you are using Windows Authentication.
With the use of Forms and allowing access to this web service anonymously it uses the "domain\ProxyAccount" which is the anonymous user listed in IIS.
When viewing the security identity in either example the user is the same.
When using the IIS identity instead of enforcing it by hard coding it with in the identity tag it is lacking the correct permissions or privlege.
When the security error (event id 578) occurs it names the user that is trying to write to the event log as "domain\ProxyAccount" when using the IIS Anonymous account.
If hard code the same domain account it works fine and it does have the correct permissions.
I don't know but it seems like the hardcoded account gets the correct/all of the permissions and privleges but when impersonating the IIS anonymous account it does not.
djinn1
| Sat, 05 Jan 2008 20:50:00 GMT |