Re: FileExists with UNC Path with a Service.

From: RL Tech (tech_support_at_nospamuls.com)
Date: 12/02/04


Date: Thu, 2 Dec 2004 12:46:37 -0700

Hi Tony,

Thank you... that's what the problem was... This is good to know!

It was set up to use the local system pseudo-account... i changed the
account to use the network admin account, and it now works the way it is
supposed to.

Again, thanks!

...Robin

"Tony Proctor" <tony_proctor@aimtechnology_NoMoreSPAM_.com> wrote in message
news:e4F9U9J2EHA.304@TK2MSFTNGP11.phx.gbl...
> Is the service running under a specific account, or the default
LocalSystem
> pseudo-account? I ask because the LocalSystem account doesn't have any
> network access. Hence, if your UNC specification is referring to a
different
> machine then it will fail.
>
> Tony Proctor
>
> "RL Tech" <tech_support@nospamuls.com> wrote in message
> news:uXbQOzJ2EHA.3504@TK2MSFTNGP12.phx.gbl...
> > Hi,
> > I have an app that is supposed to check a unc path for the existance of
a
> > file...
> > ie: \\computer\\folder\file.xml
> >
> > When i run the "fileexists" (numerous, on the net), and when run in the
> DEV
> > as well as compiled, works fine (returns true).
> >
> > When i try and run the same program as a NT Service, i am told that the
> file
> > doesn't exist...
> >
> > This is the Statement in the "FileExists" .
> > FileExists = (Dir$(FileName) <> "")
> >
> > Pretty basic and it always works... except with UNC paths, on a
service...
> >
> > Does anyone have any clue to why this may be happening?
> > I did check the permissions, and added my computer (thinking that it was
a
> > permissions/security issue to the folder, but no change there...)...
> >
> > Thanks.
> >
> >
>
>



Relevant Pages

  • Re: NTSVC.OCX Help needed
    ... > LocalSystem account. ... > that is not allowed though that pseudo-account. ... > Have you tried installing it to run under a specific account? ...
    (microsoft.public.vb.general.discussion)
  • Re: failing Process and impersonation connection
    ... This is confirmed when using whoamI - I am NOT the network admin account ... when I shell out, so do you know how to start a shell process under an ... > impersonated account but I dont know how to do this... ...
    (microsoft.public.dotnet.security)