sgarg
sgarg

Reputation: 2459

WCF request works from windows forms but not windows service

My WCF service is installed as a windows service configured to use NETTCP binding. I did not do anything special other than importing the service definition, making the client and calling the function.

When I call the WCF service from a windows forms application, I am able to send requests normally. But when I run the same code inside a windows service running as Local System, I get "The service does not allow you to log on anonymously." warning and a "socket connection aborted" in the service trace file.

Can someone give me an idea of what else I need to take care of when making WCF requests from a windows service instead of windows forms from an authentication perspective?

Upvotes: 0

Views: 906

Answers (1)

sgarg
sgarg

Reputation: 2459

From this MSDN page, it looks like any WCF client that uses Local System account for the service will be treated with Anonymous NTLM. That's what solved my problem -changing the account for the service. I still don't know what account a windows forms uses, but that's ok.

Upvotes: 1

Related Questions