Hi,
I worte a Csharp application that monitors a shared folder on our network using fileSystemWatcher component, the problem is that if the network connection is lost for few seconds fileSystemWatcher stops monitoring without raising any errors at all! And it doesn't start monitoring when connection is back.
(The same thing happens if you are monitoring files in a local folder and you delete it, fileSystemWatcher won't error, and won't restart monitoring if you put the folder back)
How can I force fileSystemWatcher to detect the problem and start monitoring as soon as the network connection is re-established?
Thanks in advance
I worte a Csharp application that monitors a shared folder on our network using fileSystemWatcher component, the problem is that if the network connection is lost for few seconds fileSystemWatcher stops monitoring without raising any errors at all! And it doesn't start monitoring when connection is back.
(The same thing happens if you are monitoring files in a local folder and you delete it, fileSystemWatcher won't error, and won't restart monitoring if you put the folder back)
How can I force fileSystemWatcher to detect the problem and start monitoring as soon as the network connection is re-established?
Thanks in advance