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