PC Review


Reply
Thread Tools Rate Thread

Custom Event Log message text

 
 
Brian Fulford
Guest
Posts: n/a
 
      2nd Sep 2003
In my application event log... my service logs messages fine... but all the
entries have more text than what I assigned to the message text.. ideas
why???



The description for Event ID ( 0 ) in Source ( CheckECHStats ) 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. The following information is part of the event: Service
Stopped.


 
Reply With Quote
 
 
 
 
Kevin Yu
Guest
Posts: n/a
 
      3rd Sep 2003
Hi Brian,

I'm not quite sure how this occurs with limited information. Generally, you
got this message when the Event Source was deleted or an application was
uninstalled. Did you use System.Diagnostics.EventLog.DeleteEventSource to
delete the Event Source in your application after writing logs?

Would you please provide me with some of your codes so that I can help you
more quickly?.

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

 
Reply With Quote
 
Brian Fulford
Guest
Posts: n/a
 
      3rd Sep 2003
Hi Kevin,

I wasnt Deleting the Event Source.. but I did figure it out in a round about
way. I wasnt calling the system.diagnostics.eventlog.createeventsource.. I
was calling eventlog1.createeventsource.... changing this seems to have
gotten the right message text into the event log without the extra verbiage.

If Not System.Diagnostics.EventLog.SourceExists("CheckECHStats") Then

System.Diagnostics.EventLog.CreateEventSource("CheckECHStats", "Check ECH
Stats Log")

End If

EventLog1.Source = "CheckECHStats"

EventLog1.Log = "Check ECH Stats Log"


"Kevin Yu" <v-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Brian,
>
> I'm not quite sure how this occurs with limited information. Generally,

you
> got this message when the Event Source was deleted or an application was
> uninstalled. Did you use System.Diagnostics.EventLog.DeleteEventSource to
> delete the Event Source in your application after writing logs?
>
> Would you please provide me with some of your codes so that I can help you
> more quickly?.
>
> If anything is unclear, please feel free to reply to the post.
>
> Kevin Yu
> =======
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."
>



 
Reply With Quote
 
Kevin Yu
Guest
Posts: n/a
 
      4th Sep 2003
Hi Brian,

I'm glad to hear that you've get out the problem so quickly.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Validation Text message =?Utf-8?B?QWNjZXNzIEpvZQ==?= Microsoft Access Database Table Design 4 9th May 2007 12:09 PM
Adding custom text to message =?Utf-8?B?TWFyaW5NYXJpbm92?= Microsoft Outlook VBA Programming 2 27th Feb 2007 03:59 PM
Hide Validator Message On Text Changed Event John Microsoft ASP .NET 0 16th Feb 2007 03:44 PM
Data has changed message - Unbound text box w/ AfterUpdate event Sub Max Moor Microsoft Access Form Coding 2 7th Sep 2004 10:00 PM
Event Log Message property: not receiving localized text Tim Microsoft Dot NET Framework 0 29th Dec 2003 06:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:00 AM.