revertToSelf without a WindowsImpersonationContext?
From: eau (dfgdfgdfg@sdfsdf.ca)
Date: 12/11/02
- Next message: oleg: "Re: site on local machine runs fine, but does not run on the server?"
- Previous message: Y: "Re: site on local machine runs fine, but does not run on the server?"
- Next in thread: Jian-Wei Yu [MSFT]: "RE: revertToSelf without a WindowsImpersonationContext?"
- Reply: Jian-Wei Yu [MSFT]: "RE: revertToSelf without a WindowsImpersonationContext?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "eau" <dfgdfgdfg@sdfsdf.ca> Date: Wed, 11 Dec 2002 17:55:10 -0500
I have an ASP .NET application with "<identity impersonate = "true" />" in
its web.config.
"Anonymous access" is unchecked in IIS.
It runs under the interractive windows user account and it's perfect for
most of my code.
But for some part of my code i want the identity to go back to the ASPNET
account, ther identity i would have if i didn't use "<identity impersonate =
"true" />" in web.config.
How could I do that?
I can't (or I don't know how...) to get a WindowsImpersonationContext object
and call its "undo()" method because I don't programmatically impersonate
the identity, the impersonation is done from the "web.config".
So how could I do a revertToSelf() ?
Thanks,
eau
- Next message: oleg: "Re: site on local machine runs fine, but does not run on the server?"
- Previous message: Y: "Re: site on local machine runs fine, but does not run on the server?"
- Next in thread: Jian-Wei Yu [MSFT]: "RE: revertToSelf without a WindowsImpersonationContext?"
- Reply: Jian-Wei Yu [MSFT]: "RE: revertToSelf without a WindowsImpersonationContext?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]