Hi,
I am trying to debug windows service but i cannot do it properly.
This is what i followed:
my service name is MediTest
Debug(menu)-> Attach to process->MediTest.vshost.exe->attach
But the problem is that MediTest.vshost.exe is not getting highlighted to make it as attach to debugger.
Can any one tell me how to fix this?
And i also changed on start event as follows to allow to debug efficinetly:
Protected Overrides Sub OnStart(ByVal args() As String)
Thread.Sleep(15000)
AddHandler timer.Elapsed, AddressOf Me.OnElapsedTime
timer.Interval = 60000
timer.Enabled = True
AddToFile("starting service")
End Sub
I am trying to debug windows service but i cannot do it properly.
This is what i followed:
my service name is MediTest
Debug(menu)-> Attach to process->MediTest.vshost.exe->attach
But the problem is that MediTest.vshost.exe is not getting highlighted to make it as attach to debugger.
Can any one tell me how to fix this?
And i also changed on start event as follows to allow to debug efficinetly:
Protected Overrides Sub OnStart(ByVal args() As String)
Thread.Sleep(15000)
AddHandler timer.Elapsed, AddressOf Me.OnElapsedTime
timer.Interval = 60000
timer.Enabled = True
AddToFile("starting service")
End Sub