<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-2"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 31/03/2010 00:37, Michael Foord wrote:
<blockquote
 cite="mid:6f4025011003301637y3cb2cafaq1b77959c1cf68082@mail.gmail.com"
 type="cite">For what it's worth I've just hit this problem too, but
with GetUserStoreForApplication.<br>
  <br>
</blockquote>
<br>
Bah, and store.FileExists(...). Probably all methods in that api. :-(<br>
<br>
Any chance of fixing this for 2.6.1?<br>
<br>
Michael<br>
<br>
<blockquote
 cite="mid:6f4025011003301637y3cb2cafaq1b77959c1cf68082@mail.gmail.com"
 type="cite">Michael<br>
  <br>
  <div class="gmail_quote">2010/3/16 Dino Viehland <span dir="ltr">&lt;<a
 moz-do-not-send="true" href="mailto:dinov@microsoft.com">dinov@microsoft.com</a>&gt;</span><br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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 class="h5"><br>
&gt; -----Original Message-----<br>
&gt; From: <a moz-do-not-send="true"
 href="mailto:users-bounces@lists.ironpython.com">users-bounces@lists.ironpython.com</a>
[mailto:<a moz-do-not-send="true" href="mailto:users-">users-</a><br>
&gt; <a moz-do-not-send="true"
 href="mailto:bounces@lists.ironpython.com">bounces@lists.ironpython.com</a>]
On Behalf Of Lukas Cenovsky<br>
&gt; Sent: Tuesday, March 16, 2010 6:37 AM<br>
&gt; To: Discussion of IronPython<br>
&gt; Subject: [IronPython] IsolateStorage.GetUserStoreForApplication
throws<br>
&gt; SystemError in IronPython 2.6<br>
&gt;<br>
&gt; Hi all,<br>
&gt; one cannot use IsolatedStorage in IronPython 2.6.<br>
&gt; Calling IsolatedStorageFile.GetUserStoreForApplication() throws<br>
&gt;<br>
&gt; SystemError: Application code cannot access<br>
&gt; System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite()<br>
&gt; using Reflection.<br>
&gt;<br>
&gt;<br>
&gt; It works fine in IronPython 2.0.2.<br>
&gt;<br>
&gt; I've entered a bug:<br>
&gt; <a moz-do-not-send="true"
 href="http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26488"
 target="_blank">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26488</a><br>
&gt;<br>
&gt; --<br>
&gt; -- Lukáš<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a moz-do-not-send="true" href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
&gt; <a moz-do-not-send="true"
 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 moz-do-not-send="true" href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
    <a moz-do-not-send="true"
 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 moz-do-not-send="true" href="http://www.ironpythoninaction.com/">http://www.ironpythoninaction.com/</a><br>
  <br>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.ironpythoninaction.com/">http://www.ironpythoninaction.com/</a>
<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/blog">http://www.voidspace.org.uk/blog</a>

READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (&#8221;BOGUS AGREEMENTS&#8221;) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.

</pre>
</body>
</html>