My app run at 2 modes: Windows and Service. At Windows mode, my app works fine but at service mode, I can not use CreateDirectory command to create a new directory on server.
Ex:
Directory.CreateDirectory(@"\\ghpvn-linux1\ghp\20041205");
ghpvn-linux1: is the server name
ghp: is the shared directory
20041205: is the directory that I want to create
I receive error, starting "Could not find part of the path '\\ghpvn-linux1\ghp'."
I try to use both NetworkService account and LocalSystem account but still not success....
I have all the necessary permissions on shared directory of server
Can anybody help please?
Thanks,
Van Nguyen
--
Message posted via http://www.dotnetmonster.com