For what it's worth I've just hit this problem too, but with GetUserStoreForApplication.
Michael 2010/3/16 Dino Viehland <di...@microsoft.com> > A possible work around for this is: > > def f(): > for i in xrange(200): > try: > return > System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() > except: pass > > After enough invocations we will no longer use reflection to call it. > > We just need to add IsolatedStorageFile to a black list of things that > shouldn't > be invoked via reflection. > > > -----Original Message----- > > From: users-boun...@lists.ironpython.com [mailto:users- > > boun...@lists.ironpython.com] On Behalf Of Lukas Cenovsky > > Sent: Tuesday, March 16, 2010 6:37 AM > > To: Discussion of IronPython > > Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws > > SystemError in IronPython 2.6 > > > > Hi all, > > one cannot use IsolatedStorage in IronPython 2.6. > > Calling IsolatedStorageFile.GetUserStoreForApplication() throws > > > > SystemError: Application code cannot access > > System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite() > > using Reflection. > > > > > > It works fine in IronPython 2.0.2. > > > > I've entered a bug: > > http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26488 > > > > -- > > -- Lukáš > > > > _______________________________________________ > > Users mailing list > > Users@lists.ironpython.com > > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > _______________________________________________ > Users mailing list > Users@lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > -- http://www.ironpythoninaction.com/
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com