EventLog woes

M

Mark Henry

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-
 
M

Michael Nemtsev

Hello Mark,

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

MH> I can't for the life of me get an EventLog to log to a custom log.
MH> Everything I've possibly tried ends up with some error in the
MH> Application log about missing message DLLs. If I log to the
MH> Application
MH> log instead, everything's fine.
MH> I set the log's source properly - there source doesn't exist for the
MH> Application log, but it does exist in the custom log - I checked in
MH> the
MH> registry. Everything looks perfectly fine, except it simply doesn't
MH> work.
MH> Is there some special super-secret trick to getting event logging
MH> working 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 Nietzsch
 
G

Guest

Do you have admin permissions?

What errors are u getting?

It's very easy to write in the event log
 
K

Kevin Spencer

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/library/system.diagnostics.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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top