TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Eric Tang
NA
1
0
Can't access event log for tasks
Jan 21 2010 8:34 PM
I am trying to access the log file at "Microsoft-Windows-TaskScheduler/Operational" but get an exception
string logName = "Microsoft-Windows-TaskScheduler/Operational";
EventLog log1 = new EventLog(logName, "myMachine");
foreach( EventLogEntry entry in log1.Entries )
{
}
// threw exception: System.InvalidOperationException: The event log 'Microsoft-Windows-TaskScheduler/Operational' on computer 'myMachine' does not exist..
Does anyone know what I need to do?
Reply
Answers (
0
)
Add Installers witha project exe application
qualify it with a type name instead