Rohit_Saksena
Member
- Joined
- Mar 3, 2005
- Messages
- 14
- Programming Experience
- 3-5
Hi,
My project requirement says that I have to write certain entries to EventLog and if the EventLog is full I have to clear it off.
Now while I am trying to call objEventLog.Clear() I am receiving following exception:
System.ComponentModel.Win32Exception: Access is denied at System.Diagnostics.EventLog.Clear()
The application is to be deployed on Windows 2003 and it is there that this problem is popping up as the same code is working fine on Windows XP.
Can anybody help.
Awaiting responses.
Thanks & Regards
Rohit Saksena
My project requirement says that I have to write certain entries to EventLog and if the EventLog is full I have to clear it off.
Now while I am trying to call objEventLog.Clear() I am receiving following exception:
System.ComponentModel.Win32Exception: Access is denied at System.Diagnostics.EventLog.Clear()
The application is to be deployed on Windows 2003 and it is there that this problem is popping up as the same code is working fine on Windows XP.
Can anybody help.
Awaiting responses.
Thanks & Regards
Rohit Saksena