I am getting an exception System.IO.Internal.BufferOverflowException when I am trying to monitor a folder on network path(DFS - Distributed File System): To many changes at once . It works fine when FileSystemWatcher is monitoring local/network path that don't use this filesystem.
I am able to get an event from 1000 + files on local path and I am not getting BufferOverflow exception, however when I am copying file to folder that is on DFS I am not even able to get an event from one(To clarify this, I am getting an error event raised...).
I've already tried to set:
fileSystemWatcher.InternalBufferSize = 65536;
I am not sure if this will help you but the path look like this:
\\corpnet\cloud\\Network\testFolder\myFolderToMonitor
Edit: 1 I am not sure why there are two double slashes in path. I can monitor without a problem folder till the \corpnet\cloud path. I am getting errors once I am trying to monitor any folder that is starting from
...\\Network\...
Any hints from you appreciated.
Thanks