Hi everyone,
I am developing a windows service that creates three files with data base information from a query and put them in a network folder.
The problem I have is that the service didn´t create any file on this folder. On the other hand, if I change this folder to a local one it works perfectly.
I tried to execute a bat file after the files generation that moves the three files to the network resource and it fails as well. But If I change the bat code to a local folder it works.
I know that It is problem with the privileges, but I dont know what is.
For example, If i put the code in a common windows form project, it works, and the files are moved or created in the network folder.
For your information, I have full privileges in the network folder and i create the windows service like networkservice:
processInstaller.Account = ServiceAccount.NetworkService
Please, I need your help!
Thanks very much for your attention and regards.
I am developing a windows service that creates three files with data base information from a query and put them in a network folder.
The problem I have is that the service didn´t create any file on this folder. On the other hand, if I change this folder to a local one it works perfectly.
I tried to execute a bat file after the files generation that moves the three files to the network resource and it fails as well. But If I change the bat code to a local folder it works.
I know that It is problem with the privileges, but I dont know what is.
For example, If i put the code in a common windows form project, it works, and the files are moved or created in the network folder.
For your information, I have full privileges in the network folder and i create the windows service like networkservice:
processInstaller.Account = ServiceAccount.NetworkService
Please, I need your help!
Thanks very much for your attention and regards.