Re: C# ASP.NET & Impersonation
- From: "Olivier Matrot" <olivier.matrot@xxxxxxxxxxxxx>
- Date: Tue, 12 Apr 2005 08:37:08 +0200
I need to use GetTempFileName after impersonation to create the file to
print.
After successfull impersonation, this function still return the path for
ASPNET account.
"Bruce Barker" <brubar_nospamplease_@xxxxxxxxxx> wrote in message
news:uwub43rPFHA.3628@xxxxxxxxxxxxxxxxxxxxxxx
> 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" <olivier.matrot@xxxxxxxxxxxxx> wrote in message
> news:uLg2$gqPFHA.3076@xxxxxxxxxxxxxxxxxxxxxxx
>>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.
>>
>>
>
>
.
- References:
- C# ASP.NET & Impersonation
- From: Olivier Matrot
- Re: C# ASP.NET & Impersonation
- From: Bruce Barker
- C# ASP.NET & Impersonation
- Prev by Date: RE: Error when attaching multiple files (System.web.mail)
- Next by Date: Problem with SmartNavigation
- Previous by thread: Re: C# ASP.NET & Impersonation
- Next by thread: Problem in ASP.Net File Upload Application
- Index(es):
Relevant Pages
|