[IronPython] IsolateStorage.GetUserStoreForApplication throws SystemError in IronPython 2.6

Lukas Cenovsky cenovsky at bakalari.cz
Tue Mar 16 19:13:01 CET 2010


You're trying 5 times :-)
Thanks for the workaround.

--
-- Lukáš


Dino Viehland wrote:
> 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
>
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100316/540dfc69/attachment.html>


More information about the Ironpython-users mailing list