|
All, I can’t seem to find the right
information on this one. First off here my web.config entry for
1.2.9 <log4net> <appender name="TEST" type="log4net.Appender.EventLogAppender" > <logName value="TEST2" /> <applicationName value="TEST3" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%d{yyyMMdd:HHmmss.fffff} [%t] %-5p %c
%x - %m%n" /> </layout> <mapping> <level value="DEBUG" /> <eventLogEntryType value="Information" /> </mapping> </appender> <root> <level value="ALL" /> <appender-ref ref="TEST" /> </root> </log4net> I’ve gone into my local registry
and created the key/sink to support this under the application log. Basically,
what is it going to take to get this to work without giving special permission
to aspnet? Here is the infamous error message: log4net:ERROR
XmlHierarchyConfigurator: Could not create Appender [TEST] of type
[log4net.Appender.EventLogAppender]. Reported error follows. System.Security.SecurityException:
Requested registry access is not allowed. at
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) at
System.Diagnostics.EventLog.FindSourceRegistration(String source, String
machineName, Boolean readOnly) at
System.Diagnostics.EventLog.SourceExists(String source, String machineName) at
System.Diagnostics.EventLog.SourceExists(String source) at
log4net.Appender.EventLogAppender.ActivateOptions() at
log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlElement
appenderElement) log4net:ERROR XmlHierarchyConfigurator: Appender
named [TEST] not found. Many thanks to the person who can answer
this. Stephen Stephen Patten Shared Services Technical Manager Impac Funding Corporation 949-274-1141 (Cell) 949-260-4533 (Work) 949-706-6329 (Fax) |
- Windows Event Log and ASP.NET Patten, Stephen
- RE: Windows Event Log and ASP.NET Nicko Cadell
- RE: Windows Event Log and ASP.NET Patten, Stephen
- RE: Windows Event Log and ASP.NET Patten, Stephen
- RE: Windows Event Log and ASP.NET Paul Cowan
