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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -