473,383 Members | 1,762 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,383 software developers and data experts.

Remote FileSystemWatcher as service

I have created a service that uses a fileSystemWatcher to monitor the
creation of files on an ftp server. The service will run on our database
server and monitor a remote directory. It worked from a windows appliaction
but will not work from the service. When I start the service I log the
exception and the error is that the
The directory name \\Misdevtestw2k\MMSProject\USPSEntryScanFTP is invalid.
although this is copied straight from the windows explorer.
Any suggestions as to how to make tis work would be appreciated.

Thanks
Nov 21 '05 #1
4 3100
Have you tried mapping a drive and seeing if it works that way?
I am taking a stab that it might have something to do with UNCs. I am sure there is a
way to make it work the way you would like but this would be an easy test.

"Cfleischer" <Cf********@discussions.microsoft.com> wrote in message
news:DC**********************************@microsof t.com...
I have created a service that uses a fileSystemWatcher to monitor the
creation of files on an ftp server. The service will run on our database
server and monitor a remote directory. It worked from a windows appliaction
but will not work from the service. When I start the service I log the
exception and the error is that the
The directory name \\Misdevtestw2k\MMSProject\USPSEntryScanFTP is invalid.
although this is copied straight from the windows explorer.
Any suggestions as to how to make tis work would be appreciated.

Thanks

Nov 21 '05 #2
Yes, I originally tried using a mapped drive and got the same error.
The service is loggedon as as a user account to allow access to a sql
database.
The user is able to access the directory as both a mpped drive and a UNC
"Mark Jones" wrote:
Have you tried mapping a drive and seeing if it works that way?
I am taking a stab that it might have something to do with UNCs. I am sure there is a
way to make it work the way you would like but this would be an easy test.

"Cfleischer" <Cf********@discussions.microsoft.com> wrote in message
news:DC**********************************@microsof t.com...
I have created a service that uses a fileSystemWatcher to monitor the
creation of files on an ftp server. The service will run on our database
server and monitor a remote directory. It worked from a windows appliaction
but will not work from the service. When I start the service I log the
exception and the error is that the
The directory name \\Misdevtestw2k\MMSProject\USPSEntryScanFTP is invalid.
although this is copied straight from the windows explorer.
Any suggestions as to how to make tis work would be appreciated.

Thanks


Nov 21 '05 #3
Just a thought but under what account is the service running, try running
the service under the adminstrators account so that it will have rights to
read/write folders on the other server.

MS
"Cfleischer" <Cf********@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
Yes, I originally tried using a mapped drive and got the same error.
The service is loggedon as as a user account to allow access to a sql
database.
The user is able to access the directory as both a mpped drive and a UNC
"Mark Jones" wrote:
Have you tried mapping a drive and seeing if it works that way?
I am taking a stab that it might have something to do with UNCs. I am
sure there is a
way to make it work the way you would like but this would be an easy
test.

"Cfleischer" <Cf********@discussions.microsoft.com> wrote in message
news:DC**********************************@microsof t.com...
> I have created a service that uses a fileSystemWatcher to monitor the
> creation of files on an ftp server. The service will run on our
> database
> server and monitor a remote directory. It worked from a windows
> appliaction
> but will not work from the service. When I start the service I log the
> exception and the error is that the
> The directory name \\Misdevtestw2k\MMSProject\USPSEntryScanFTP is
> invalid.
> although this is copied straight from the windows explorer.
> Any suggestions as to how to make tis work would be appreciated.
>
> Thanks


Nov 21 '05 #4
Sorry forget my last post, i diddn't read the full thread....
"Martin Smith" <ma***********@blueyonder.co.uk> wrote in message
news:4l******************@fe1.news.blueyonder.co.u k...
Just a thought but under what account is the service running, try running
the service under the adminstrators account so that it will have rights to
read/write folders on the other server.

MS
"Cfleischer" <Cf********@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
Yes, I originally tried using a mapped drive and got the same error.
The service is loggedon as as a user account to allow access to a sql
database.
The user is able to access the directory as both a mpped drive and a UNC
"Mark Jones" wrote:
Have you tried mapping a drive and seeing if it works that way?
I am taking a stab that it might have something to do with UNCs. I am
sure there is a
way to make it work the way you would like but this would be an easy
test.

"Cfleischer" <Cf********@discussions.microsoft.com> wrote in message
news:DC**********************************@microsof t.com...
> I have created a service that uses a fileSystemWatcher to monitor the
> creation of files on an ftp server. The service will run on our
> database
> server and monitor a remote directory. It worked from a windows
> appliaction
> but will not work from the service. When I start the service I log
> the
> exception and the error is that the
> The directory name \\Misdevtestw2k\MMSProject\USPSEntryScanFTP is
> invalid.
> although this is copied straight from the windows explorer.
> Any suggestions as to how to make tis work would be appreciated.
>
> Thanks


Nov 21 '05 #5

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

Similar topics

1
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...
1
by: Joshua Mann | last post by:
I have created a windows service which runs the FileSystemWatcher component. If the service is running and monitoring a directory (ex. "c:\temp") during heavy folder access the service generates...
1
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...
3
by: Craig Thompson | last post by:
I've attempted to write a windows service that creates one FileSystemWatcher for each entry in a XML config file. Everything start perfrectly and runs as I expect for about 5 minutes and then...
2
by: Jet Leung | last post by:
Hi all, I had made a program to watching files in my directory. I had used a instance of FileSystemWatcher to do my work.And I had add some events of the FileSystemWatcher , for example onChange,...
2
by: Sacha Korell | last post by:
I need to set up a FileSystemWatcher in my web application (to automatically process uploaded files) and I'm trying to decide where to set it up. I would like to keep it within the web app, but it...
20
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...
0
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...
1
by: D2 | last post by:
Hi, We are using FileSystemWatcher class in a windows service to monitor a directory "d:\abc". This path is configured in a config file. When the service is running and FSW is watching this...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.