Using a network path not working

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

Mike

Hi all, I have a vb.net program running as a service that uses a network
path to query a file.

If System.IO.File.Exists(fpath & "\" & filename)

Can anyone tell me why the above isn't working? When I place it in a none
service program it works fine.


Any help appreciated.


Thanks in advance.
 
I made sure everthing is there. It seems that network paths don't work when
the vb program is running as a serice. Is that true?
 
Under what user context service is running?

Mike said:
I made sure everthing is there. It seems that network paths don't work when
the vb program is running as a serice. Is that true?
 
Always include the error message. As soon as something works in a regular
application but doesn't work in an ASP.NET application or a service, double
check permissions...
 
Thanks to all for the help. I changed the user for the service and it
worked. Thanks again.
 
Back
Top