Remote FileSystemWatcher as service

G

Guest

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
 
M

Mark Jones

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.
 
G

Guest

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
 
M

Martin Smith

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top