Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-310

EventLogAppender's ActivateOptions throws SecurityException on Vista/Win2k3 and later when not run as administrator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.10
    • 1.2.11
    • None
    • None

    Description

      ActivateOptions uses EventLog.SourceExists which throws an exception of the source hasn't been found in any of the logs the user was allowed to read and there are others (in particular "Security") that the user is not allowed to access.

      This is the reason of one of the unit test errors I reported in LOG4NET-301

      Even if the code catches the exception and assumes the source doesn't exist this won't help as EventLog.CreateEventSource must not be called without administrator privileges either.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bodewig Stefan Bodewig
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: