G
Guest
We create a new eventlog for our inhouse apps, and we all our clickonce (C#)
apps are writting in the event log, if the user is a local ADMIN.
but for non-admin users, our apps are unable to write to any event log.
how to allow a click once apps to write in an event log for non-admin user?
Here's our code:
if (!EventLog.SourceExists("Enterprise Library Logging"))
{
EventLog.CreateEventSource("Enterprise Library Logging",
"UAP");
}
EventLog elog = new EventLog();
elog.Log = "UAP";
elog.Source = Application.ProductName;
elog.MaximumKilobytes = 102400; // Comme les autres EVENT LOG.
elog.WriteEntry("App STARTED", EventLogEntryType.Information);
elog.Close();
apps are writting in the event log, if the user is a local ADMIN.
but for non-admin users, our apps are unable to write to any event log.
how to allow a click once apps to write in an event log for non-admin user?
Here's our code:
if (!EventLog.SourceExists("Enterprise Library Logging"))
{
EventLog.CreateEventSource("Enterprise Library Logging",
"UAP");
}
EventLog elog = new EventLog();
elog.Log = "UAP";
elog.Source = Application.ProductName;
elog.MaximumKilobytes = 102400; // Comme les autres EVENT LOG.
elog.WriteEntry("App STARTED", EventLogEntryType.Information);
elog.Close();