[IronPython] IsolateStorage.GetUserStoreForApplication throws SystemError in IronPython 2.6
Michael Foord
fuzzyman at voidspace.org.uk
Wed Mar 31 01:37:18 CEST 2010
For what it's worth I've just hit this problem too, but with
GetUserStoreForApplication.
Michael
2010/3/16 Dino Viehland <dinov at 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-bounces at lists.ironpython.com [mailto:users-
> > bounces at 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 at lists.ironpython.com
> > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100331/df5e6029/attachment.html>
More information about the Ironpython-users
mailing list