Re: writing to event viewer
First decide what event log you want to use
You can create your own log using this script
http://dev.thatsit.net.au/samples/wsh/logs/eventlog/lgevvb05.htm
to write an event
http://dev.thatsit.net.au/samples/wsh/logs/eventlog/lgevvb20.htm
this is for windows scripting host, I assume its much the same in asp.net
Actually I just had a look, try System.Diagnostics.EventLog
you seem to be able to do the same using this class, although I have not
done so myself
"pelegk1" wrote in message
news:A807D67C-BBEC-4F1E-8207-CF767E676371@microsoft.com...
> how when i write to the event viewer to have a clean test withought :
> [quote]
> The description for Event ID ( 0 ) in Source ( HopWeb ) 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:
> [/quote]
>
> thnaks i nadvance
> peleg
Date:Fri, 10 Aug 2007 23:49:25 +0800
Author:
|