473,654 Members | 3,239 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FileSystemWatch er in a Service - XP machine works, W2K sever does

I have looked over most of the FSW questions in the forum and this one seems
like a unique twist. Here it is.

In a nutshell, when a .NET service is running on my machine (XP), the fsw
file created event fires just fine and everything processes correctly. When
we move the same service to a W2K server box (server is running SP4 - I saw
the other post on this), the fsw file created event does not fire when we
create a file in the same directory the service is watching on the same file
server!

Supporting info:
- the service is set to run under an account that has access to the target
directory (on another network server) where the file is being created.
- We are using standard notation for the directory the fsw needs to monitor
(ie "\\machinename\ shared\director y\")
- the service runs under an account that has local admin rights in both
environments
- the service writes to the app event log during start on both boxes that
indicates it is looking at the correct directory and file type (the fsw
filter is set for *.xls)
- we have made sure that the file does not exist on the target directory -
ie we are not trying to overlay an existing file.
-We have determined that the DFS environment is not causing an issue.

We think it may be something in the config of the W2K server running the
service that is preventing the file create notification messages from the
file server where the file is being created from getting thru to the fsw.

Any help is greatly appreciated.
--
Thank You. Alan.
Oct 20 '05 #1
0 1289

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

Similar topics

1
2168
by: Rich Miller | last post by:
Previously posted on the VB newsgroup with no replies, so any ideas appreciated. I have written a service application in VB (VS.Net 2003). On start, the service creates an object that instantiates a System.IO.FileSystemWatcher like so (the _watcher is declared at the class level as Private and no WithEvents): ' construct the file watcher _watcher = New FileSystemWatcher _watcher.Path = WatchPath _watcher.NotifyFilter =...
1
1551
by: A Hirsi | last post by:
Hi I am planning to use the filesystemwatcher to monitor an ftp site for changes to a file. I would like to download the file if it changes and process it locally. I read somewhere that I do not need a service to accomplish this and only need to write my filesystemwatcher. Do I really need to make the Filesystemwatcher program a service? Can someone please point me in the right direction.
1
4592
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 does not trigger the event - all I have to do is to restart the service. I kind of suspect the reason is when the target matchine where monitored drive is on gets rebooted, the filesystemwatcher lost its "monioring" capability, is that true? if...
3
14278
by: Stampede | last post by:
Hi, I want to use the FileSystemWatcher in a Windows Service. I read an article, where the author created the FileSystemWatcher object in a seperate thread and when the event is fired, he started a working thread for processing the file, created a new FileSystemWatcher (as he said for real time processing), and then called the join method for the first thread. I can't really see the sence in this. Aren't the events of the...
20
4451
by: J-T | last post by:
We are working on an asp.net application which is a 3-tier application.I was aksed to create a component which monitors a folder and gets the file and pass them to a class library in our business logic layer(so far so good and easy).I initialize my class which is using a FileSystemWatcher in my Global.asax and everything works fine.I have found FileSystemWatcher class not very reliable and sometimes it behavies unexpectedly.I'm afriad that...
0
1069
by: CPragash | last post by:
Hello All, I'm developing a FileSystemWatcher Service using VB.NET to monitor a network shared folder. The folder actually resides on the same server where the service is running and I'm instantiating the FileSystemWatcher object with the local path eg. "C:\FolderName". There is another application on the intranet that will drop text files to this folder which my service will parse and then move the file either to an archive folder or...
0
1213
by: Rich Miller | last post by:
Any ideas appreciated. I have written a service application in VB (VS.Net 2003). On start, the service creates an object that instantiates a System.IO.FileSystemWatcher like so (the _watcher is declared at the class level as Private and no WithEvents): ' construct the file watcher _watcher = New FileSystemWatcher _watcher.Path = WatchPath _watcher.NotifyFilter = (NotifyFilters.FileName Or NotifyFilters.Size Or...
0
319
by: AlanF | last post by:
I have looked over most of the FSW questions in the forum and this one seems like a unique twist. Here it is. In a nutshell, when a .NET service is running on my machine (XP), the fsw file created event fires just fine and everything processes correctly. When we move the same service to a W2K server box (server is running SP4 - I saw the other post on this), the fsw file created event does not fire when we create a file in the same...
3
6848
by: webgreginsf | 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 production. Everything works fine when I set the Path to a local drive (i.e. "C:\Test"). However, when I attempt to set the Path to a UNC path to my remote folder (i.e. "\\servername\share" with an actual server and share name of course), I receive...
0
8379
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8294
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8816
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7309
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4297
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2719
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1597
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.