Hi all,
I worte a Csharp application which monitors a shared folder on a network using fileSystemWatcher component, the problem is that if the network connection is lost for few seconds fileSystemWatcher stops monitoring without raising any errors. Also, it doesn't start monitoring when the connection is re-established.
I noticed 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