473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

EventLog woes

I can't for the life of me get an EventLog to log to a custom log.
Everything I've possibly tried ends up with some error in the
Application log about missing message DLLs. If I log to the Application
log instead, everything's fine.
I set the log's source properly - there source doesn't exist for the
Application log, but it does exist in the custom log - I checked in the
registry. Everything looks perfectly fine, except it simply doesn't work.

Is there some special super-secret trick to getting event logging
working properly?

-Mark-
Nov 9 '06 #1
3 1378
Hello Mark,

You need to create source (via EventLog for example) to start log into it

MHI can't for the life of me get an EventLog to log to a custom log.
MHEverything I've possibly tried ends up with some error in the
MHApplication log about missing message DLLs. If I log to the
MHApplication
MHlog instead, everything's fine.
MHI set the log's source properly - there source doesn't exist for the
MHApplication log, but it does exist in the custom log - I checked in
MHthe
MHregistry. Everything looks perfectly fine, except it simply doesn't
MHwork.
MHIs there some special super-secret trick to getting event logging
MHworking properly?
MH>
MH-Mark-
MH>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Nov 9 '06 #2
Do you have admin permissions?

What errors are u getting?

It's very easy to write in the event log

"Mark Henry" wrote:
I can't for the life of me get an EventLog to log to a custom log.
Everything I've possibly tried ends up with some error in the
Application log about missing message DLLs. If I log to the Application
log instead, everything's fine.
I set the log's source properly - there source doesn't exist for the
Application log, but it does exist in the custom log - I checked in the
registry. Everything looks perfectly fine, except it simply doesn't work.

Is there some special super-secret trick to getting event logging
working properly?

-Mark-
Nov 9 '06 #3
Since we know nothing about what exactly you've tried to do, I'm going to
have to give you ALL of the super-secret tricks to writing to the Event Log,
and you'll have to figure out which super-secret trick you've overlooked:

http://msdn2.microsoft.com/en-us/lib....eventlog.aspx

--
;-),

Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com

I just flew in from Chicago with
a man with a wooden leg named Smith
who shot an elephant in my pajamas.
So I bit him.
"Mark Henry" <mh****@rrinc.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>I can't for the life of me get an EventLog to log to a custom log.
Everything I've possibly tried ends up with some error in the Application
log about missing message DLLs. If I log to the Application log instead,
everything's fine.
I set the log's source properly - there source doesn't exist for the
Application log, but it does exist in the custom log - I checked in the
registry. Everything looks perfectly fine, except it simply doesn't work.

Is there some special super-secret trick to getting event logging working
properly?

-Mark-

Nov 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Joe | last post by:
I am trying to read the EventLog of different servers on the network. If I run the script in a command line, it works well. But when I try to put the script into the Web server (IIS in Windows...
0
by: Jacob Colding | last post by:
Hello, I have created a a logging mechanism, that writes mesages to a custom event log. On each check it verifies whether the requested source is registered to the "IPS" log. If not, it changes...
2
by: rgilmore | last post by:
Our app uses the EventLog class to write errors to the event log. Sometimes the app runs unattended for days, and if errors are occurring, the event log can fill up, causing the app to have no way...
2
by: Next | last post by:
Hello all, I have a windows service that was suppose to write some events into its own EventLog. I created the EventLog using the component on VS 2003 toolbar Added an installer for it. Set...
1
by: MAL | last post by:
Hello, I am writing a service program that writes to a custom EventLog. I would like the two classes used in the service to write messages to the same log ideally using a different Source name...
1
by: martin | last post by:
Hi, I'm having some problems with the System.Diagnostics.EventLog class in .NET 2.0 I need to recreate an event message source inside a new log but the messages keeps ending up in the old...
3
by: Ben | last post by:
I am trying to write an eventlog monitor. I am using the sample code provided by VB2005 SDK as the bases for my application. I need to monitor all three logs (application, system, and security)....
0
by: rene | last post by:
I'm trying to use costome categories in my eventlog for a program I'm writing. But I have some problems with it, I cant get it to work. Checklist for how I did this. 1. Created a...
1
by: Jeff | last post by:
hi ..Net 2.0 I've created the code below and think I've executed it. After I thought I've executed it I checked in EventLog on the computer (win2k3) and no entry was added. This could mean 2...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.