| | |
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:
Solved Threads: 1
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
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
•
•
Join Date: Jul 2007
Posts: 276
Reputation:
Solved Threads: 37
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.
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.
•
•
Join Date: Jul 2007
Posts: 276
Reputation:
Solved Threads: 37
You didn't mark it as solved, are you still stuck?
Did you find this site?
http://www.freevbcode.com/ShowCode.Asp?ID=2298
Did you find this site?
http://www.freevbcode.com/ShowCode.Asp?ID=2298
•
•
Join Date: Aug 2007
Posts: 55
Reputation:
Solved Threads: 1
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
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
•
•
•
•
You didn't mark it as solved, are you still stuck?
Did you find this site?
http://www.freevbcode.com/ShowCode.Asp?ID=2298
![]() |
Similar Threads
- Trojans keep reappearing (Viruses, Spyware and other Nasties)
- This is a wierd one! (Windows NT / 2000 / XP)
Other Threads in the VB.NET Forum
- Previous Thread: Find Text String and Output Line Numbers Text Falls on
- Next Thread: Disable tabcontrol from clicking
| Thread Tools | Search this Thread |
"crystal .net .net2008 2008 access add advanced application array assignment basic beginner box browser button buttons center click code combo convert cpu cuesent data database datagrid datagridview datetimepicker designer dissertation dissertations dissertationtopic dosconsolevb.net editvb.net employees excel exists firewall forms html images isnumericfuntioncall listview map math memory mobile module msaccess mssqlbackend mysql navigate net number opacity open pan pdf picturebox picturebox2 port print printpreview record regex reuse right-to-left save search serial settings socket sorting sqldatbase sqlserver storedprocedure temp textbox timer timespan transparency txttoxmlconverter upload useraccounts usercontol vb vb.net vb.nettoolboxvisualbasic2008sidebar vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web wpf wrapingcode xml year





