FileSystemWatcher surpassing Active Directory restrictions
        Posted  
        
            by 
                DevexPP
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by DevexPP
        
        
        
        Published on 2011-01-07T12:11:43Z
        Indexed on 
            2011/01/07
            12:53 UTC
        
        
        Read the original article
        Hit count: 271
        
While experimenting with FileSystemWatcher, I've found out that it somehow surpasses Active Directory's restrictions to files and folders, and will raise change events with information about what has changed in files and folders that you don't even have access to.
I have two questions about that:
1) Why does this happen ?
2) Is this a problem in the AD configuration ? how do I fix it ?
3) Is there any way to gather these files, or even create a FileSystemInfo of them to get more info about the files (not only the changes made on them) ?  
As far as I've tried, only the FileSystemWatcher immune to the restrictions, I can't run any other thing over it, here's a list of what I've tried:
- File.Exists
 - Directory.Exists
 - FileInfo instance on found files
 - DirectoryInfo instance on found files
 - File.Copy
 - File.Delete
 
© Stack Overflow or respective owner