my devel

my devel

  • NA
  • 89
  • 0

Watchfolder service not work on network shared folder

Apr 5 2012 2:44 PM
Hi guys, 
I wrote a windows service to monitor a network hot folder. the service compile with no error and install successfully on machine, , as soon as i click on "Start the Service" it take me to visual studio and shows "The directory name \\192.167.0.10\Temp is invalid.
i have used in these two format:
this.fileSystemWatcher1.Path = @"\\\\192.168.0.10\\Temp";
this.fileSystemWatcher1.Path = @"\\\\Test_Server\\Temp";

none of them work.
I also added Network Service and Local Service on Temp folder.
it works fine on local machine,
any idea, help would be appreciate.
Thanks