Hi

I have a windows VB.NET service that works perfectly on a normal standalone server. However when installed in clustered environment (2 machines) it seems to be fired twice.

I initiate a timer in the OnStart event and when a particular file is detected in a specific folder I execute some actions. It appears that both machines attemt to start the action since I get two log entries for the start action. Is there any special code I should include in my service to silently exit of the service has already started by the second machine of the cluster, may be something similar to
VB Code:
  1. If App.PrevInstance Then
  2.     Exit Sub
  3.  End Sub

that I would include in a VB6 executable.

Thanks