Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 81158 invoked from network); 27 Aug 2010 15:12:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Aug 2010 15:12:45 -0000 Received: (qmail 4895 invoked by uid 500); 27 Aug 2010 15:12:44 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 4831 invoked by uid 500); 27 Aug 2010 15:12:44 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET User" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 4823 invoked by uid 99); 27 Aug 2010 15:12:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Aug 2010 15:12:43 +0000 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of paulh@grassoc.co.uk does not designate 173.248.129.15 as permitted sender) Received: from [173.248.129.15] (HELO mail.jpadtrading.com) (173.248.129.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Aug 2010 15:12:38 +0000 Received: by mail.jpadtrading.com via HTTP; Fri, 27 Aug 2010 11:14:19 -0400 From: "Paul Hatcher" To: "Log4NET User" Subject: Re: Event description preceeded by text that I want to remove... Date: Fri, 27 Aug 2010 11:14:19 -0400 Reply-To: paulh@grassoc.co.uk Message-ID: <525eb8fa$5b86e5fb$3431d0ec$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_7FCA09CE.329E87B8" X-Originating-IP: [194.1.194.190] This is a multipart message in MIME format. ------=_NextPart_000_0001_7FCA09CE.329E87B8 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I'd write a little app to prove I could write to that event source. BTW you don't want ASPNET to be member of Administrators as it's a fairly major security hole Paul ---------------------------------------- From: sclover@consultant.com Sent: 27 August 2010 15:24 To: log4net-user@logging.apache.org, paulh@grassoc.co.uk Subject: Re: Event description preceeded by text that I want to remove... Hi Paul, Yes, I checked. Both myself and the ASPNET users are members of Administrators group. And also yes, I created the event folder by the writing a batch file that inserts the following into the registry: REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\myApp /v EventMessageFile /t REG_EXPAND_SZ /d C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\EventLogMessages.dll I of course run this before I access the application. Problem is though I'm still getting the stuff before the message. Any ideas why? S. -----Original Message----- From: Paul Hatcher To: Log4NET User ; log4net-user@logging.apache.org Sent: Fri, Aug 27, 2010 2:27 pm Subject: re: Event description preceeded by text that I want to remove... S Does the event folder exist on the computer, typically you need to have created it beforehand as you need administrator rights to do so. It's fairly easy to write a little console app to create these or bundle the process into your installation routine Paul ---------------------------------------- From: sclover@consultant.com Sent: 27 August 2010 14:21 To: log4net-user@logging.apache.org Subject: Event description preceeded by text that I want to remove... Hi everyone, Am wondering can you help me please? I'm successfully writing out to the eventlog using the log4net framework i.e. usign the appender log4net.Appender.EventLogAppender. To be exact to a dedicated folder called: myApp The problem is is that in all the events (when I look at them) are preceeded by the following text: "The description for Event ID ( 0 ) in Source ( myApp ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details." After that comes the usefully information like timestamps etc i.e. as dictated by the conversionPattern tag inside te appender. Does anyone know how to remove the text beginning: "The description..." ??? I would greatly appreciate any comments/advice/suggestuion that you may be able to offer. Thanking you, S. ------=_NextPart_000_0001_7FCA09CE.329E87B8 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable = I'd write a little app to prove I could write to that event source.

BTW you don't want ASPNET to be member of Administrators as it's a fairly m= ajor security hole

Paul


From: sclover@consultant.com
Sent: 27 August 2010 15:24
To: log4net-user@logging.apache.org, paulh@grassoc.co.uk
Subject: Re: Event description preceeded by text that I want to remo= ve...


Hi Paul,
 
   Yes, I checked. Both myself and the ASPNET users are memb= ers of Administrators group. And also yes, I created the event folder by th= e writing a batch file that inserts the following into the registry:
 
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\= myApp /v EventMessageFile /t REG_EXPAND_SZ /d C:\WINDOWS\Microsoft.NET\Fram= ework\v2.0.50727\EventLogMessages.dll
I of course run this before I access the application.
 
Problem is though I'm still getting the stuff before the message. Any = ideas why?
 
S.
 


 


-----Original Message-----
From: Paul Hatcher <paulh@grassoc.co.uk>
To: Log4NET User <log4net-user@logging.apache.org>; log4net-user@logg= ing.apache.org
Sent: Fri, Aug 27, 2010 2:27 pm
Subject: re: Event description preceeded by text that I want to remove...
S

Does the event folder exist on the computer, typically you need to have cre= ated it beforehand as you need administrator rights to do so.

It's fairly easy to write a little console app to create these or bundle th= e process into your installation routine

Paul

From: sclover@consultant.c= om
Sent: 27 August 2010 14:21
To: log4net-user@= logging.apache.org
Subject: Event description preceeded by text that I want to remove..= .


Hi everyone,
 
 Am wondering can you help me please? I'm successfully writing ou= t to the eventlog using the log4net framework i.e. usign the appender log4n= et.Appender.EventLogAppender. To be exact to a dedicated folder called: myA= pp
 
<applicationName value=3D"myApp" />

 The problem is is that in all the events (when I look at them) are pr= eceeded by the following text:

"The description for Event ID ( 0 ) in Source ( myApp ) cannot be found. Th= e local computer may not have the necessary registry information or message= DLL files to display messages from a remote computer. You may be able to u= se the /AUXSOURCE=3D flag to retrieve this description; see Help and Suppor= t for details."
 
 After that comes the usefully information like timestamps etc i.= e. as dictated by the conversionPattern tag inside te appender.
 
 Does anyone know how to remove the text beginning: "The descript= ion..." ???
 
 I would greatly appreciate any comments/advice/suggestuion that = you may be able to offer.
 
Thanking you,
S.



------=_NextPart_000_0001_7FCA09CE.329E87B8--