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
Sumit Kumawat
NA
454
413.6k
eventlog.exists not working for setup event log ?
Nov 24 2017 6:27 AM
Hi all,
i am exporting event log using ExportLogAndMessages() method but before im checking that event log is exist or not using EventLog.Exists(LogName) methods it is working fine for "Application", "Security" logs but when i am checking for "Setup" it is returing false value while checking but "Setup" log is available in machine.
why is is retuning false?
any other method to check events available on machine or not?
TIA
below is my code
if (EventLog.Exists(LogName))
{
EventLogSession logsession = new EventLogSession();
logsession.ExportLogAndMessages(LogName, PathType.LogName, "*", subfolderpath, false, CultureInfo.CurrentCulture);
}
Reply
Answers (
1
)
Validation in MVC
Add a Icon in pdf for show validity of a digital signature