you can call it anytime after you have a primary token. not sure why you
would load a profile, its not quick, nor is it needed to print. you would
also need to make the impersonated account an admin. note, you can only have
one profile per process, so don't switch.
-- bruce (sqlwork.com)
"Olivier Matrot" <ol************@online.nospam> wrote in message
news:uL**************@TK2MSFTNGP12.phx.gbl...
I need to impersonate in ASP.NET in order to print a document to a printer.
The guidelines in http://support.microsoft.com/kb/306158/EN-US/ do not
tell
about loading the user profile (LoadUserProfile).
Where should this call be inserted ?
TIA.