Today, I removed the references to the Exception Managment application block in our framework here at the port... The reason? As far as I can tell, there's an issue with impersonation and writing to the event log under 2003 that shows up when using Publish(System.Exception ex):
[InvalidOperationException: Cannot open log for source {0}. You may not have
write access.]
There's a thread here and here and here all seeming to dead end, un-resolved that address this issue. After a bunch of FileMon-ing and RegMon-ing, I started asking why I needed to publish to the Event Log in the first place. My answer to myself was “I dunno.“ In fact, publishing to the Event Log is kind of a pain in the butt anyhow, with the log filling up, permissions, etc. So, I implemented a custom Publish(System.Exception ex) method that puts the log somewhere else.
This is the second Application block that I've had to un-use. I stopped using the Data app block long ago because of bugs. I'm still using the FileUpdater block which I'm happy with.
.