Thanks Marc.
I modified property of service process installer as your reply.
So, my service got domain authorization.
//processInstaller.Account = ServiceAccount.NetworkService;
processInstaller.Account = ServiceAccount.User;
processInstaller.Username = "sean";
processInstaller.Password = "fdsfdsfdsf";
"Marc Gravell" <ma**********@gmail.com´ÔÀÌ ´ÙÀ½ ¸Þ½ÃÁö¸¦ ÀÛ¼ºÇß½À´Ï´Ù.
news:u9**************@TK2MSFTNGP04.phx.gbl...
>how can I endow my service with domain authorization ?
What account is it running as? Local Service? Network Service?
Local Service will be "anon" when calling out. Network Service will
identify using the machine's identity. If you want a specific account,
then just change the service details to use a named network account (and
restart it). You can automate this if you create an installer (msi) for
the service, but if it is only going to be installed a few times it is
just as easy to go into the services applet and change the settings there.
Marc