Home All Groups Group Topic Archive Search About

IsolatedStorage problem

Author
21 Jul 2006 6:28 AM
Lloyd Dupont
I'm trying to manually create an Isolated storage which is associated with a particular type.

IN a pseudo code like that
//========== is.cs ===========

using System;
using System.IO.IsolatedStorage;


// csc /nologo /out:ist.exe is.cs && ist
class AType
{
}
class ISTest
{
  public static void Main(string[] arg)
  {
    Type t = typeof(AType);
    IsolatedStorageFile isf = IsolatedStorageFile.GetStore(
      IsolatedStorageScope.Assembly | IsolatedStorageScope.User,
      null,
      t.Assembly.Evidence);
    Console.WriteLine("Done");
  }
}//=========================

That throws undecypherable error.
I try to use reflector to see what:

IsolatedStorageFile.GetUserStoreForAssembly()


does, but I was none the wiser... :-/

Any tip on how to create IsolatedStorage associated with an arbitrary assembly (given as an argument)?

AddThis Social Bookmark Button