I am getting this error when I try and read the events in the Security log.
A required privilege is not held by the client!
My web site is set up as Integrated Authentication and in my web.config I
have the following
<identity impersonate="true" />
Since I am an Admin on my box and on the domain, why can't ASP.NET C# code
read my security log?
Here is my code:
EventLog aLog = new EventLog();
aLog.Entries;
string sLogName = DDLEventLog.SelectedItem.Value.ToString();
aLog.Log = sLogName;
aLog.MachineName = Environment.MachineName;
LogGrid.DataSource = aLog.Entries;
* LogGrid.DataBind();
* is where the error occurs when I try and bind the results from the log to
a grid.
Thanks
Tom