C# Programming
10-27-2009, 12:30 PM
How to enable the C# windows service application write access to some folder and eventLogs
I created the simple service and in OnStart method written file write creation operation. It fails however.
Either adding eventLog.WriteEntry component without try/catch blocks in the OnStart method generates exception to Windows Applications Log as System.Security.SecurityException in System.Diagnostics.EventLog.WriteEntry()
????????
I created the simple service and in OnStart method written file write creation operation. It fails however.
Either adding eventLog.WriteEntry component without try/catch blocks in the OnStart method generates exception to Windows Applications Log as System.Security.SecurityException in System.Diagnostics.EventLog.WriteEntry()
????????