FileSystemWatcher gives invalid path error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • A.S.

    #1

    FileSystemWatcher gives invalid path error

    When i use FileSystemWatch er to monitor a local directory
    on my machine ,it works fine.But I need to monitor a file
    on a different server.So i set
    FileSystemWatch er1.path="\\ser ver1\App\Data"

    However,this gives ArgumentExcepti on:The directory name is
    invalid.I tried giving the ip address instead of the
    servername ,but got the same error.I also tried mapping to
    the directory and giving "H:\App\Dat a" ,again got the same
    error.
    The server name etc is correct,if i
    type "\\server\App\D ata" at the Start->run prompt ,it
    opens up the Data Directory.

    Thanks in advance.

Working...