Hi,
I am Reshma, a new member to this group. I need help on windows service.
I am trying to write a service that sends mails to employees on the birthday's by accessing data from a particular website.
I wrote the service and it executed correctly. But after some I got some error.
And now if I am trying to write a new service its not working,
Protected Overrides Sub OnStart(ByVal args() As String)
EventLog.WriteEntry(String.Format("service started"))
End Sub
Just I wrote this to test, but I am not able to start it.
If Not MyLog.SourceExists("BirthdayService") Then
MyLog.CreateEventSource("BirthdayService", "Birthday Log")
End If
MyLog.Source = "BirthdayService"
MyLog.WriteEntry(MyLog.LogDisplayName)
I wrote this in OnStart Event, again I am getting error.
Can anyone tell me how to write to a log file and is there anyway that we can debug a service step by step while running it.
Thanks
I am Reshma, a new member to this group. I need help on windows service.
I am trying to write a service that sends mails to employees on the birthday's by accessing data from a particular website.
I wrote the service and it executed correctly. But after some I got some error.
And now if I am trying to write a new service its not working,
Protected Overrides Sub OnStart(ByVal args() As String)
EventLog.WriteEntry(String.Format("service started"))
End Sub
Just I wrote this to test, but I am not able to start it.
If Not MyLog.SourceExists("BirthdayService") Then
MyLog.CreateEventSource("BirthdayService", "Birthday Log")
End If
MyLog.Source = "BirthdayService"
MyLog.WriteEntry(MyLog.LogDisplayName)
I wrote this in OnStart Event, again I am getting error.
Can anyone tell me how to write to a log file and is there anyway that we can debug a service step by step while running it.
Thanks