By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,401 Members | 803 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,401 IT Pros & Developers. It's quick & easy.

FileSystemWatcher and Windows Service

P: n/a
I have created a FileSystemWatcher application that monitors a set of folder
for changes. This works well as a windows app. I have copied the code from
the windows app to a windows service and now there are problems.

If I perform add/chg/del in the folder, the windows app captures all changes
(actually to a degree that I did not know happened - ie. 4 events for an add
of a file).

The windows service though will not pick up add's to the folder. I am
writing to the event log (my own) to show changes and those changes are
being logged to a SQL Server as well.

Are there problems with FileSystemWatcher and windows services? The routine
that writes the event log entries is used for all three events

This is being tested on a windows xp pro workstation.

LLoyd Sheen
Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.