Home All Groups Group Topic Archive Search About

IsolatedStorage & Windows Impersonation

Author
19 Jun 2006 11:56 PM
ElianaS
It doesn't seem that IsolatedStorage works when using Impersonatino.

Here's what I tried:

Psuedo Code:
In main()
{
   Verify License();
   if ( LimitedUserRights Enviroment)
   {
      ImpersonateAccountWithSufficientRightsToRun();
   }

   Write out "SystemUnDo" Information to restore on exit.

   DoStuff();

   UnDo/Restore()
}

When I Impersonate a user, I am no longer able to write anything out to
IsolatedStorage, apparantly, the system, for IsolatedStorage purposes,
doesn't get the Impersonated User's context, and IsolatedStorage throws an
inaccessible exception.

How can (is it possible) to use IsolatedStorage when Impersonating a user?

AddThis Social Bookmark Button