revertToSelf without a WindowsImpersonationContext?

From: eau (dfgdfgdfg@sdfsdf.ca)
Date: 12/11/02


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


Quantcast