I have just recently run into an issue running an asp.net web app under visual studio 2008. I get the error \'type is not resolved for member...customUserPrincipal\'. Trac
Under a webforms application I believe Thread.CurrentPrincipal will be the principal for whomever is running the worker process (Thread).
HttpContext.Current.User will be the current logged in web-user.
In the case of a forms/wpf app it makes sense because the user you're running the application under is the one you're interested in.
Are you trying to masquerade the worker process or the logged in user?