By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,537 Members | 1,743 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,537 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.
Jun 19 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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#.

"Mike" <wa*****@swbell.net> wrote in message
news:Lb********************@newssvr29.news.prodigy .net...
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.

Jun 19 '06 #2

P: n/a
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.

Jun 19 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.