471,317 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Not receiving FileSystemWatcher events


I've written a C# application that monitors files on a remote server
for "Change" only. I can use explorer to view the remote system using a
UNC path. From this I can open and change this file and I get properly
notified via:

watcher = new FileSystemWatcher();
watcher.Changed += new FileSystemEventHandler(OnFileEvent);

However, if I change the file "from" the remote system through a
command line interface, I do not get a change event notification.
Likewise, if I use a desktop application (same location as where this
C# application is running) to change this file, I do not get the change
event notification.

I logon using the following method to impersonate a user (which
works fine):

LogonUser(userName, domain, password,

Any ideas why one way works and the other 2 ways do not? Is this an
authenication issue?



Feb 2 '06 #1
0 1004

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Josh Usovsky | last post: by
reply views Thread by cxw0106 | last post: by
3 posts views Thread by Michael Stanbrook | last post: by
3 posts views Thread by Stampede | last post: by
3 posts views Thread by Stampede | last post: by
2 posts views Thread by kmcnet | last post: by

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.