470,591 Members | 1,528 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,591 developers. It's quick & easy.

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 2998
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by A Hirsi | last post: by
3 posts views Thread by Craig Thompson | last post: by
2 posts views Thread by Sacha Korell | last post: by
1 post views Thread by D2 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.