G
Guest
I am trying to create a windows service. The part I am having trouble with
is writing text to a log file. I am using a very basic StreamWriter function
to try to test this.
I have created a very basic service app to try to test this:
OnStart
timer1.enabled = True
OnStop
Timer1.enabled = Fales
Private Sub Timer1.elapsed (ByVal...blah blah blah) Handles blah
Dim fw as new StreamWriter("C:\LogFile", True)
fw.WriteLine("This is a test from the service")
End sub
but, of course, the text file is blank. Please help.
Also, what is the best way to debug a service. Is there a way to step
through procedures?
Thank you
MATT
is writing text to a log file. I am using a very basic StreamWriter function
to try to test this.
I have created a very basic service app to try to test this:
OnStart
timer1.enabled = True
OnStop
Timer1.enabled = Fales
Private Sub Timer1.elapsed (ByVal...blah blah blah) Handles blah
Dim fw as new StreamWriter("C:\LogFile", True)
fw.WriteLine("This is a test from the service")
End sub
but, of course, the text file is blank. Please help.
Also, what is the best way to debug a service. Is there a way to step
through procedures?
Thank you
MATT