Re: Inability to use EventLogAppender with ASPNET

2005-10-11 Thread Hollywood
I've been running into this lately. One of the items is to make sure your have permissions to the event log to write with. Check the HKLM\System\CurrrentControlSet\EventLog and make sure whatever user your process (if WinForms the logged on user or if ASP the website/webservices' AppPool user

RE: Inability to use EventLogAppender with ASPNET

2005-10-11 Thread Billy Barnum
Try removing your line:             I think what you're doing there is naming a custom EventLog with the same name as the existing Application log, which in turn requires write access to the registry. Just remove that line and see what happens. -BillyB WILLIAM BARNUM [EMAIL PROTECTED] _

Re: RemotingServer hangs?

2005-10-11 Thread mailing
I just noticed something significant that I should add. The RemotingServer service uses log4net (via the plugin) to log the incoming events. My App.config file is setup to log the events to text file and database (ADONetAppender). When I thought the service had hung, the events were no longer be

RemotingServer hangs?

2005-10-11 Thread mailing
Hi, I'm using a .NET Remoting solution which uses the RemotingServer NT service, included as example code with the distribution. I have a custom .NET Remoting appender which sends events asynchronously to the RemotingServer (in 1.2.8 the RemotingAppender was not asynchronous, so I wrote my own)

Re: Dynamically add Souce and Category to EventLog

2005-10-11 Thread Mohit Mehra
The idea is to use the same Logger for multiple applications (Windows Services, Web Services etc). For example System event log has sources like DCOM, SCM, IIS etc. I would give extending EventLogAppender a try though.    Thanks.   On 10/11/05, Ron Grabowski <[EMAIL PROTECTED]> wrote: There's this

Re: Dynamically add Souce and Category to EventLog

2005-10-11 Thread Ron Grabowski
There's this: /// /// Property used to set the Application name. This appears in the /// event logs when logging. /// /// /// The string used to distinguish events from different sources. /// /// /// Sets the event log source property. /// public string ApplicationName { get {

Re: Dynamically add Souce and Category to EventLog

2005-10-11 Thread Mohit Mehra
Ron,Thanks for your prompt replay. Although I have seen a lot of posts regarding EventId, I still don't see anything related to setting the Source dynamically. Can you please post me some code or redirect to a URL?   Regards, Mohit     On 10/11/05, Ron Grabowski <[EMAIL PROTECTED]> wrote: This is

Re: Dynamically add Souce and Category to EventLog

2005-10-11 Thread Ron Grabowski
This is being addressed in this thread: http://tinyurl.com/da3hj http://www.mail-archive.com/log4net-user%40logging.apache.org/msg02455.html There has also been an issue opened on this since June 2005: http://issues.apache.org/jira/browse/LOG4NET-38 --- Mohit Mehra <[EMAIL PROTECTED]> wrote: >

Dynamically add Souce and Category to EventLog

2005-10-11 Thread Mohit Mehra
Hello There, I am using the most recent version of Log4Net. I need to be able to add source and category information on a per message basis. I am able to successfully add this in the SQL server as I can utilize MDC properties. Example: MDC.Set("category", category); Can I do something similar to