c# - WCF service not impersonating specified user in config? -


i have basic wcf service using basichttpbinding. have site project , services project. in site project, have regular services reference service in services project. in development environment, works fine. however, in our staging environment, have enabled impersonation on services application. service connects sql database using user, of course.

the issue is, while other asmx services seem impersonate fine user defined in web.config, wcf service still running site's user, causing sql authentication fail.

are there steps enable impersonation wcf service? have not done special beside adding:

service.clientcredentials.windows.allowedimpersonationlevel = system.security.principal.tokenimpersonationlevel.delegation; 

after initialize service proxy website. thoughts? thanks.

if mean asp.net impersonation account configured in web.config doesn't work wcf unless turn on aspnetcompatibility. wcf doesn't offer such configuration.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -