FileSystemWatcher Fails to access network drive

I have projects using the FileSystemWatcher object monitoring UNC paths without any issues.

My guess from looking at your code example may be that you are pointing the watcher at the root share of the server (//servername/) which may not be a valid file system share? I know it returns things like printers, scheduled tasks, etc. in windows explorer.

Try pointing the watcher to a share beneath the root – something like //servername/c$/ would be a good test example if you have remote administrative rights on the server.

Leave a Comment