Re: What to do with EventLogAppender on Vista and newer?

2011-09-12 Thread Stefan Bodewig
On 2011-09-12, Stefan Bodewig wrote: On 2011-09-11, Roy Chastain wrote: (1) document that you need to create your event sources outside of your application (usually during deployment) and (2) deal with the SecurityException in a more graceful way (log something and disable the appender,

What to do with EventLogAppender on Vista and newer?

2011-09-09 Thread Stefan Bodewig
Hi, as stated in LOG4NET-310 EventLogAppender runs into a SecurityException on Vista and newer if the event source doesn't exist. ActivateOptions tries to see whether the source exists and create it if it doesn't. Starting with Vista even looking for a source that doesn't exist will throw a