I have spent weeks on trying to get WCF authentication, but I keep going round and round.
Currently I have created an incredibly simple service
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class SecurityService
[OperationBehavior(Impersonation = ImpersonationOption.Required)]
public string GetWindowsUserName()
When I host this and call it from a visual studio project it works (and returns the user name), however when I host the site in IIS7, and browse to it I get "NT AUTHORITY\NETWORK SERVICE" as the user!
I am using my dev box as the host (i.e I testing the site from the same domain... is that an issue?)
Here is my web.config
<compilation debug="true" targetFramework="4.0" />
<validation validateIntegratedModeConfiguration="false" />
View Complete Post