wcf - HttpContext.Current.User is always null -
i have wcf service has method return windows username of silverlight client consuming service . wcf service using basichttpbinding transportcredentialonly mode set , transportclientcredentialtype set windows. in iis windows authentication enabled , anon authentication disabled.
despite (apparently) configuring service correctly when call service , ask return username errors. closer examination shows httpcontext.current.user null (so nullreferenceexception thrown).
does have other ideas why not working?
try adding -
<servicehostingenvironment aspnetcompatibilityenabled="true" />
to config file
Comments
Post a Comment