Isolated Storage Access

From: Dirk Ströker (dstroeker_at_kw-software.de)
Date: 05/31/05


Date: Tue, 31 May 2005 16:01:02 +0200

Hello,

I have got the following problem:
My application references an assembly of a third party library. A class
implemented in this assembly stores a file in the Isolated Storage.
Unfortunately this class does not implement a method to delete this file.
But this is very important for me.

I tried to use the method "System.IO.IsolatedStorageFile.GetStore()" to get
access to the Isolated Storage of this assembly and call
"System.IO.IsolatedStorageFile.DeleteFile()" to remove the file. But calling
"GetStore()" gets me in trouble with the security mechanism of the .NET
framework. I get the following exception message:

"Selected identity type missing in assembly evidence list."

Because I never get in contact with evidence / identity and co. before, I
have a big problem now.
What must I do to get the Isolated Storage of another assembly than the
calling one?

(The scope of my "GetStore()" call is: "IsolatedStorageScope.Domain |
IsolatedStorageScope.Assembly | IsolatedStorageScope.User" .)

Regards
Dirk Ströker



Relevant Pages

  • Re: Isolated Storage Access
    ... "Dirk Ströker" wrote in message ... > implemented in this assembly stores a file in the Isolated Storage. ... Which overload of GetStore are you calling and with what arguments? ...
    (microsoft.public.dotnet.security)
  • Re: Isolated Storage Access
    ... >> implemented in this assembly stores a file in the Isolated Storage. ... > Which overload of GetStore are you calling and with what arguments? ... Evidence assemblyEvidence = assembly.Evidence; ...
    (microsoft.public.dotnet.security)