I tried lauching Internet Explorer from a Windows Service. It didn't work. However, the same code works in a console application.

Here is the code...


Private Sub Timer1_Elapsed(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs) Handles Timer1.Elapsed
Try
Process.Start("IExplore.exe", "www.gotdotnet.com")
EventLog1.WriteEntry("Launched!")
Catch ex As Exception
EventLog1.WriteEntry("Could not launch Internet Explorer")
End Try
Beep()
End Sub

Surprisingly, the above code adds an entry "Launched!" to the Event log everytime the timer fires but it does not lauch the browser.

Please help.
Shashi