Quantcast
Viewing all articles
Browse latest Browse all 8156

FileSystemWatcher InternalBufferOverflow on network path DFS

Hi,

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 FileCreated and so on 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 one bellow. I am not sure why there are two double slashes in path. I can monitor without a problem file till the \\corpnet\cloud path. I am getting errors once I am trying to monitor any folder above \\corpnet\cloud\\Network\testFolder\myFolderToMonitor

\\corpnet\cloud\\Network\testFolder\myFolderToMonitor

Access time from datacenter where application is installed to my network where folder that is being monitored is more than 1000ms-2000ms+

I have also tried this application http://www.codeproject.com/Articles/58740/FileSystemWatcher-Pure-Chaos-Part-1-of-2

to exclude problem with my code.

Once I am copying a file to the mentioned directory on DFS share this application above Logs several onError events. (To many changes at once). This is really weird because I am just copying a file that is less <1kB.

Is this is a bug? It seems that an event is raised an my applications is able to receive it but it is an Error event(Buffer overflow)... FileSystemWatcher is able to process just fine more then 1000+ files copied at once when I am using it on local/network paths that are in my network.

I have tried to copy files from Windows 7 and Windows Server 2008 r2. Same result.

Any hints from you appreciated.

Thanks




Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>