1

Closed

Requested registry access is not allowed.

description

NLog.NLogRuntimeException: Exception occurred in NLog ---> NLog.NLogRuntimeException: Target EventLog Target[eventlog] failed to initialize. ---> System.Security.SecurityException: Requested registry access is not allowed.
at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at System.Diagnostics.EventLog.CreateEventSource(EventSourceCreationData sourceData)
at NLog.Targets.EventLogTarget.CreateEventSourceIfNeeded()
at NLog.Targets.EventLogTarget.InitializeTarget()
at NLog.Targets.Target.Initialize(LoggingConfiguration configuration)
at NLog.Targets.Target.NLog.Internal.ISupportsInitialize.Initialize(LoggingConfiguration configuration)
at NLog.Config.LoggingConfiguration.InitializeAll()
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at NLog.LoggerImpl.<>c__DisplayClass1.<Write>b__0(Exception ex)
at NLog.Targets.Target.WriteAsyncLogEvent(AsyncLogEventInfo logEvent)
at NLog.LoggerImpl.WriteToTargetWithFilterChain(TargetWithFilterChain targetListHead, LogEventInfo logEvent, AsyncContinuation onException)
at NLog.LoggerImpl.Write(Type loggerType, TargetWithFilterChain targets, LogEventInfo logEvent, LogFactory factory)
at NLog.Logger.WriteToTargets[T](LogLevel level, IFormatProvider formatProvider, T value)
at NLog.Logger.Info(String message)
Closed Oct 7, 2012 at 5:32 PM by Xharze
Moved to https://github.com/NLog/NLog/issues/105

comments

keroger2k wrote May 16, 2012 at 7:58 PM

Everything quietly fails and my logging doesn't work on this machine for whatever reason? Any ideas?