473,378 Members | 1,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

FileSystemWatcher gives invalid path error

When i use FileSystemWatcher 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
FileSystemWatcher1.path="\\server1\App\Data"

However,this gives ArgumentException: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\Data" ,again got the same
error.
The server name etc is correct,if i
type "\\server\App\Data" at the Start->run prompt ,it
opens up the Data Directory.

Thanks in advance.

Jul 19 '05 #1
0 2423

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brian | last post by:
Hello all. I've created a FileSystemWatcher that is to reside on Server A and monitor the activity of folder on Server B. The application works fine with watcher.path set to C:\. However,...
1
by: brian | last post by:
Hello all. I've created a FileSystemWatcher (ASP.Net w/VB.Net code behind pages) that is to reside on Server A and monitor the activity of folder on Server B. The application works fine with...
1
by: Troy Murphy | last post by:
How do I prevent the FileSystemWatcher event to keep firing while the file is being created? When copying a file to the watched folder, the event fires a dozen or more times! Also, the...
13
by: David | last post by:
I have been working on trying to write a directory watcher service. One of the requirments is that it be able to watch multiple directories, not sub directories of one parent directory, but just...
1
by: John Lee | last post by:
Hi, I developed a filewatcher service to monitor file creation on a network drive - 90% time it works fine and from time to time I found out that the newly created file on that network drive...
0
by: A.S. | last post by:
When i use FileSystemWatcher 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 FileSystemWatcher1.path="\\server1\App\Data" ...
1
by: greg_slavin | last post by:
I'm attempting to use the FileSystemWatcher class to monitor a folder on a remote server. My app is running as a Windows service, currently on an XP machine, but it will be on Server 2003 in...
12
by: ljh | last post by:
Has anyone else noticed that the FileSystemWatcher raises the changed event twice when a file is changed? Do you have any idea why this is the case?
5
by: =?Utf-8?B?c3RhaGxlcnc=?= | last post by:
I have written a windows service to watch a folder for newly created documents. Works fine when watching directories on my local machine, but always get a "directory invalid" error when I either...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.