Greetings everyone,
Let me preface this by saying I have read other posts on this board that describe the problem I am having but I am not understanding the solutions, and I need some help.
I need to create a Windows Service that involves being able to access and move files saved on the network. I do know that I cannot use a network drive to access the network. I am able to provide the network path (\\servername\directory\subdirector\) and I have been told that anyone on the network can access this particular directory.
The Windows Service is setup as LocalSystem.
I use the following code to determine if I can access the specified network path:
When I try to change my Windows Service to be a NetworkService, I get an error that says I cannot run it as a NetworkService.
Can anyone please help me figure out how I can access files over the network with my Windows Service?
Let me know if you have any questions, and code examples would REALLY be nice. Thanks!
Let me preface this by saying I have read other posts on this board that describe the problem I am having but I am not understanding the solutions, and I need some help.
I need to create a Windows Service that involves being able to access and move files saved on the network. I do know that I cannot use a network drive to access the network. I am able to provide the network path (\\servername\directory\subdirector\) and I have been told that anyone on the network can access this particular directory.
The Windows Service is setup as LocalSystem.
I use the following code to determine if I can access the specified network path:
VB.NET:
If Not Directory.Exists(networkpath) Then
'directory not found
End If
When I try to change my Windows Service to be a NetworkService, I get an error that says I cannot run it as a NetworkService.
Can anyone please help me figure out how I can access files over the network with my Windows Service?
Let me know if you have any questions, and code examples would REALLY be nice. Thanks!