vb program can't use network paths when running as a service?

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Can a vb program running as a serice not use network paths to do file/io?

I can't seem to get my program to work with network paths and files. When I
use local disk it works fine. When I run it as a none service program it
works fine. I'm assuming that vb programs running as a service do not
support network paths. Is that true?


Thanks in advance.
 
What is exactly the problem (other than saying "not working with metwork
path....")?, What error do you get? Does the user account used to run the
service has appropriate permission the the said network path/files?, Do you
use network path like \\Servername\Foldername... or do you use mapped
network drive? If it is latter, how the network drive is mapped? or does the
user account running the services has the network drive mapped even not
acual user is lggoed on to the computer?... There may even more questions to
ask...

But, to your simple question: yes, Windows service supports network path,
whether it is written in VB.NET or C#.
 
IIRC, a Windows Service, by default, runs under the LocalSystem account
and cannot access the network.

You need to set your service to log in with an account with the
appropriate permissions to the network path you want to access.
 

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

Back
Top