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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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