Step by Step to log in Windows's eventlog

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Aug 2007
Posts: 55
Reputation: culebrin is an unknown quantity at this point 
Solved Threads: 1
culebrin culebrin is offline Offline
Junior Poster in Training

Step by Step to log in Windows's eventlog

 
0
  #1
Jan 5th, 2009
I have to write log entries through my app (ASP.NET -VB-)

In my understanding that's what I do: created a DLL Message library, then I've created certain registry entries, and insert the log entry using System.Diagnostics.EventLog.WriteEntry method on my app, then, it insert the entry but seems to be wrong somehow, the event shows:

"The description for Event ID ( 0 ) in Source ( -sourcecreated- ) 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: <<HERE THE MESSAGE I WANT TO LOG>>"

So, what I need is, a Step by Step procedure to do this (baby steps if possible) to accomplish this successfuly.

Thank you

Omar
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 276
Reputation: rapture has a spectacular aura about rapture has a spectacular aura about 
Solved Threads: 37
rapture rapture is offline Offline
Posting Whiz in Training

Re: Step by Step to log in Windows's eventlog

 
0
  #2
Jan 5th, 2009
Well just searching on this site gave me some responses to this question, a google search on

vb.net how to write to the event log

brought up a ton of things. And last but not least have you used the help feature in Visual Studio? I looked for

"write to event log"

and got some interesting material. In other words, did you make any attempt to figure it out and you don't understand something or do you just want us to do it for you?

(I'm not trying to be a jerk, I'm actually trying to help.)

*hint, within the items I have stated there is a block of code that would be extremely useful to you.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 276
Reputation: rapture has a spectacular aura about rapture has a spectacular aura about 
Solved Threads: 37
rapture rapture is offline Offline
Posting Whiz in Training

Re: Step by Step to log in Windows's eventlog

 
0
  #3
Jan 7th, 2009
You didn't mark it as solved, are you still stuck?

Did you find this site?

http://www.freevbcode.com/ShowCode.Asp?ID=2298
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 55
Reputation: culebrin is an unknown quantity at this point 
Solved Threads: 1
culebrin culebrin is offline Offline
Junior Poster in Training

Re: Step by Step to log in Windows's eventlog

 
0
  #4
Jan 16th, 2009
Well,

I did that, the problem was that I have a development machine that runs on XP SP2, and my production server runs on 2K3, works ok on windows server 2K3, but on my XP have that problem... I decided I can live with that...

Thanks to all for your help!!

Culebrin

Originally Posted by rapture View Post
You didn't mark it as solved, are you still stuck?

Did you find this site?

http://www.freevbcode.com/ShowCode.Asp?ID=2298
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC