log4net under Windows 10

38 views
Skip to first unread message

Dan Winsor

unread,
Jun 25, 2018, 10:58:37 AM6/25/18
to ccnet-user
Hi all,

Apologies if this has already been answered, but I poked around and wasn't able to find anything.  I'm building out a new CCNet machine running Windows 10.  I ported my config files from a prior Win7 based machine, so they should be sane, but when I start up the console, I get the following error:

log4net:ERROR XmlHierarchyConfigurator: Could not create Appender [EventLogAppender] of type [log4net.Appender.EventLogAppender]. Reported error follows.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
   at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly)
   at System.Diagnostics.EventLog.SourceExists(String source, String machineName)
   at log4net.Appender.EventLogAppender.ActivateOptions()
   at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlElement appenderElement)
The Zone of the assembly that failed was:
MyComputer
log4net:ERROR XmlHierarchyConfigurator: Appender named [EventLogAppender] not found.

I'm not sure if this has to do with execution permissions by the user that owns the console or exactly what that means.  Any pointers would be appreciated.

Ruben Willems

unread,
Jun 25, 2018, 2:18:05 PM6/25/18
to ccnet...@googlegroups.com
Hi

this has to do with security on the eventlog.
If you google for The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security
you'll find the answer


basically is means that the current user does not have the right to create a new source name in the eventlog.
running the service as an admin user, or as local system should solve it.



with kind regards
Ruben Willems

--

---
You received this message because you are subscribed to the Google Groups "ccnet-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ccnet-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dan Winsor

unread,
Jun 26, 2018, 8:54:59 AM6/26/18
to ccnet-user
Spot on, thanks.  We prefer to run it as a console, so logs are quick to view.  A quick setting to run as administrator for the shortcut fixed it.  Thanks for the thought.
To unsubscribe from this group and stop receiving emails from it, send an email to ccnet-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages