Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6056187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:20:55+00:00 2026-05-23T08:20:55+00:00

I have a console application using Log4Net 1.2.10.0. I added an EventLogAppender in my

  • 0

I have a console application using Log4Net 1.2.10.0. I added an EventLogAppender in my Log4Net config:

<apender name="eventLogAppender" type="log4net.Appender.EventLogAppender,log4net" >
    <mapping>
        <level value="ERROR" />
        <eventLogEntryType value="Error" />
    </mapping>
    <mapping>
        <level value="DEBUG" />
        <eventLogEntryType value="Information" />
    </mapping>
    <mapping>
        <level value="INFO" />
        <eventLogEntryType value="Information" />
    </mapping>
    <mapping>
        <level value="WARN" />
        <eventLogEntryType value="Warning" />
    </mapping>
    <layout type="log4net.Layout.PatternLayout,log4net">
        <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
    </layout>
</apender>

When I call XmlConfigurator.Configure(); I get the following error:

log4net: XmlHierarchyConfigurator: Configuration update mode [Merge].
log4net:ERROR XmlHierarchyConfigurator: Cannot find Property [apender] to set object on [log4net.Repository.Hierarchy.Hierarchy]

Then later on I get an error stating that the appender “eventLogAppender” does not exist. Most likely due to the fact that the appender failed during the configuration.

I don’t think it’s a permissions issue but I tried that anyways and still no luck.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:20:55+00:00Added an answer on May 23, 2026 at 8:20 am

    Appender has two “p”‘s in it. Fix that and you should be good. Your line is currently

    <apender name="eventLogAppender" type="log4net.Appender.EventLogAppender,log4net" >
    

    and it should be

    <appender name="eventLogAppender" type="log4net.Appender.EventLogAppender,log4net" >
    

    Don’t forget to also change your closing line from

    </apender>
    

    to

    </appender>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a c++ console application which I would like to publish using clickonce.
I have a console application and I want to deploy/share it using some msi/setup.exe
I have a C# console application written using Visual Studio 2008. My system culture
I have a console application that I'm deploying using ClickOnce. Once the user installs
I have a GUI application within which i'm spawning a console application using Process
Working on a console application using Delphi 7, and have run into a problem.
I have simple console application project for live video streaming using cross-platform libs on
I have a console application that uses NHibernate and ActiveRecord. I am using the
I currently have a small console application that runs a number of Tasks (using
I have a simple console application using MassTransit. My bus is configured to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.