Hi. I created a Windows service which uses the FileSystemWatcher and also the server-based Timer control to monitor changes to a specific directory, and I've installed the service on the test server.
The FileSystemWatcher component watches for changes to the directory and reacts when they occur, carrying out associated processing on the Created and Changed events.
The server-based Timer control has been set to raise an event every five minutes to carry out the associated processing. (Same processing as is carried out when the FileSystemWatcher event is raised.)
The FileSystemWatcher control works well when I'm actually LOGGED ON to the test server. I paste test files into the watched directory, and they are processed almost instantly.
However, when I'm NOT LOGGED ON to the server the FileSystemWatcher does not seem to be working. In Windows Explorer, I've mapped a drive to the test server. When I paste test files into the watched directory in my Windows Explorer, the files sit in the directory until the Timer control raises the event. Then the files are processed.
Does anyone know what might be going on here? Could this be due to network traffic? Thanks in advance for any advice and discussion of this issue.
Tracey
The FileSystemWatcher component watches for changes to the directory and reacts when they occur, carrying out associated processing on the Created and Changed events.
The server-based Timer control has been set to raise an event every five minutes to carry out the associated processing. (Same processing as is carried out when the FileSystemWatcher event is raised.)
The FileSystemWatcher control works well when I'm actually LOGGED ON to the test server. I paste test files into the watched directory, and they are processed almost instantly.
However, when I'm NOT LOGGED ON to the server the FileSystemWatcher does not seem to be working. In Windows Explorer, I've mapped a drive to the test server. When I paste test files into the watched directory in my Windows Explorer, the files sit in the directory until the Timer control raises the event. Then the files are processed.
Does anyone know what might be going on here? Could this be due to network traffic? Thanks in advance for any advice and discussion of this issue.
Tracey