I had a problem writing to the eventlog.
I got a message telling me i don’t have write access. I couldn’t believe that, since under normal circumstances everyone could write to the application log. At least, that’s how it should be.
Searching the internet i found this blog.
bottomline: use elevated permission for writing to the application log
Eric
Hey there Eric, thanks very much for linking back! I thought it was really strange also that I could not write to the event log, but I also found it equally interesting that the application pool identity account could.
Another important note is that I do something very similar in SharePoint custom workflows and I don’t have any such permissions issue but that’s because the custom workflows already run using the identity of the application pool account.