views:

14

answers:

0

I'm getting the following error when calling System.Web.Security.Membership.GetAllUsers() in Windows Console application.

Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.

Integrated security is in place. Impersonation is in use, and the CurrentPrincipal on the calling thread is set to an authorized user.

Calls directly against the database succeed without issue.

So, it seems probable that Membership is not using the proper user. How do I get Membership to use the impersonation user?