roby.gir

roby.gir

  • NA
  • 1
  • 0

[C# WindowServices and SAMBA share]

Sep 29 2011 9:59 AM
Hi all, I'm developed a c# window service that loop a folder for a file ad read it.

The folder is a SAMBA share, and my domain account have permission to use that share.

When the service run, I get the following error:
Eror when access to folder: unknown username or invalid password.

Note that the service is installed with ServiceAccount.User security and when install it I put my username and password

            serviceProcessInstaller.Account = ServiceAccount.User;
            serviceProcessInstaller.Username = null;
            serviceProcessInstaller.Password = null;

Any ideas?

Thanks in advance!!!


Have a good day.