Friday, May 18, 2012
 
The best way to analyze your logs! Minimize
 Log4Net Mail archive   

The Log4Net mailing list is a great source of information about using log4Net, in this forum we collect all the messages in the log4net user list and some selected threads from the developer list.

Subject: EventLog Appender on Win2k3 with ASP.net
Prev Next
You are not authorized to post a reply.

Author Messages
Pattenaude, Jerry

07/01/2008 6:20 PM  

I haven’t seen this addressed, so here’s my problem and solution for anyone that may be interested.

 

I developed an app on XP and all my logs would make it into the EventLog without any issues.  I was using a new Eventlog “mylog” and the application name is “myapp”.  I knew that I had to create the log and source because asp.net didn’t have rights to create the new log.

 

System.Diagnostics.EventLog.CreateEventSource("myapp", "mylog");

 

This worked and everything was good.  Then I went to Win2k3 where registry security has been locked down, and my log messages no longer showed up.  After a day of searching I finally found http://www.jameskovacs.com/blog/CommentView.aspx?guid=cd6e5f6e-7107-48bc-8563-f5669706fcdc which had the solution to my problem.  I needed to go to the registry and modify the CustomSD value under HKLM\SYSTEM\CurrentControlSet\Services\EventLog\mylog\ I had to add (A;;0x3;;;AU) to the end since I was using a non default user to run my asp.net app.  Now my log messages are showing up under Win3k2.

 

Hope this helps… maybe it could be added to the FAQ?

 

Jerry



This e-mail is confidential and is intended solely for the use of the addressee(s).  Content is not to be relied upon by any person other than the addressee(s), without prior written approval of RedPrairie. If you are not the intended recipient, please notify us immediately, destroy any copies and delete from your computer systems.
 
If you have received this e-mail in error, any use, disclosure, dissemination, forwarding, printing or copying is strictly prohibited.

Although this email and any attachments are believed to be free of any virus or other defects which might affect any computer or IT system into which they are received, no responsibility is accepted by RedPrairie for any loss or damage arising in any way from the receipt or use therein.

You are not authorized to post a reply.
Forums > Log4Net > Log4Net Mail archive > EventLog Appender on Win2k3 with ASP.net



ActiveForums 3.7

 

 

 

 

 

 

 

 

Log4Net Dashboard

Log analysis and monitoring made easy!

Log4Net Dashboard is a log viewer that can read log statements from a variety of logging output targets.

You can download a free developer version.

  

Check it out!

On the demonstration site you can try it  with live data.demo.l4ndash.com - Try Log4Net Dashboard with live data

The mail archive is a copy of all the mail sent to the mail address: log4net-user@logging.apache.org, organized as a forum.

If you would like to participate in the mail list, send a mail to log4net-user-subscribe@logging.apache.org.

More information about the mailing list is available on: http://logging.apache.org/log4net/support.html

 

A complete topic list is available and can be viewed here (warning, it takes some time to load)

 

Copyright 2005-2008 by FaktNet AS Terms Of Use Privacy Statement