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