T
Tom Van den Brandt
Hi,
I wrote a simple windows service that includes a FileSystemWatcher.
After building and installing the service (installutil) I notice that
the service executes twice. I included a write to the application
eventlog in OnStart ("service has started and is ready to watch the
filesystem") and this results in two entries in the eventlog.
Also, the handler for the FileSystemWatcher seems to be fired twice if
something happens with a file the service is watching.
I checked the machines services and in the task manager but I see only
one instance of the service running.
I'm a newbie at this, so I probably missed something obvious... Could
this be the properties of the service that were not correctly configured?
Any ideas?
Thx,
Tom
I wrote a simple windows service that includes a FileSystemWatcher.
After building and installing the service (installutil) I notice that
the service executes twice. I included a write to the application
eventlog in OnStart ("service has started and is ready to watch the
filesystem") and this results in two entries in the eventlog.
Also, the handler for the FileSystemWatcher seems to be fired twice if
something happens with a file the service is watching.
I checked the machines services and in the task manager but I see only
one instance of the service running.
I'm a newbie at this, so I probably missed something obvious... Could
this be the properties of the service that were not correctly configured?
Any ideas?
Thx,
Tom