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