943,696 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 2532
  • VB.NET RSS
Jan 5th, 2009
0

Step by Step to log in Windows's eventlog

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
culebrin is offline Offline
62 posts
since Aug 2007
Jan 5th, 2009
0

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

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.
Reputation Points: 155
Solved Threads: 41
Posting Whiz in Training
rapture is offline Offline
294 posts
since Jul 2007
Jan 7th, 2009
0

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

You didn't mark it as solved, are you still stuck?

Did you find this site?

http://www.freevbcode.com/ShowCode.Asp?ID=2298
Reputation Points: 155
Solved Threads: 41
Posting Whiz in Training
rapture is offline Offline
294 posts
since Jul 2007
Jan 16th, 2009
0

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

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

Click to Expand / Collapse  Quote originally posted by rapture ...
You didn't mark it as solved, are you still stuck?

Did you find this site?

http://www.freevbcode.com/ShowCode.Asp?ID=2298
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
culebrin is offline Offline
62 posts
since Aug 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Find Text String and Output Line Numbers Text Falls on
Next Thread in VB.NET Forum Timeline: Disable tabcontrol from clicking





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC