<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-2"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 31/03/2010 00:48, Dino Viehland wrote:
<blockquote
 cite="mid:1A472770E042064698CB5ADC83A12ACD394D622C@TK5EX14MBXC118.redmond.corp.microsoft.com"
 type="cite">
  <meta http-equiv="Content-Type"
 content="text/html; charset=ISO-8859-2">
  <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
  </style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="Section1">
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">Absolutely
&#8211; the fix already made it in for 2.6.1 and it does
cover all methods on IsolatedStorageFile &#8211; so this should just work.</span></p>
  </div>
</blockquote>
<br>
Cool - thanks. :-)<br>
<br>
Michael<br>
<blockquote
 cite="mid:1A472770E042064698CB5ADC83A12ACD394D622C@TK5EX14MBXC118.redmond.corp.microsoft.com"
 type="cite">
  <div class="Section1">
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
  <div
 style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0in 0in 0in 4pt;">
  <div>
  <div
 style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
  <p class="MsoNormal"><b><span
 style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;; color: windowtext;">From:</span></b><span
 style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.ironpython.com">users-bounces@lists.ironpython.com</a>
[<a class="moz-txt-link-freetext" href="mailto:users-bounces@lists.ironpython.com">mailto:users-bounces@lists.ironpython.com</a>] <b>On Behalf Of </b>Michael
Foord<br>
  <b>Sent:</b> Tuesday, March 30, 2010 4:41 PM<br>
  <b>To:</b> Discussion of IronPython<br>
  <b>Subject:</b> Re: [IronPython]
IsolateStorage.GetUserStoreForApplication
throws SystemError in IronPython 2.6<o:p></o:p></span></p>
  </div>
  </div>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal">On 31/03/2010 00:37, Michael Foord wrote: <o:p></o:p></p>
  <p class="MsoNormal" style="margin-bottom: 12pt;">For what it's worth
I've just
hit this problem too, but with GetUserStoreForApplication.<o:p></o:p></p>
  <p class="MsoNormal"><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>
  <br>
  <o:p></o:p></p>
  <p class="MsoNormal" style="margin-bottom: 12pt;">Michael<o:p></o:p></p>
  <div>
  <p class="MsoNormal">2010/3/16 Dino Viehland &lt;<a
 moz-do-not-send="true" href="mailto:dinov@microsoft.com">dinov@microsoft.com</a>&gt;<o:p></o:p></p>
  <p class="MsoNormal">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.<o:p></o:p></p>
  <div>
  <div>
  <p class="MsoNormal"><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><o:p></o:p></p>
  </div>
  </div>
  </div>
  <p class="MsoNormal"><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>
  <br>
  <o:p></o:p></p>
  <pre><o:p> </o:p></pre>
  <pre><o:p> </o:p></pre>
  <pre>_______________________________________________<o:p></o:p></pre>
  <pre>Users mailing list<o:p></o:p></pre>
  <pre><a moz-do-not-send="true"
 href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><o:p></o:p></pre>
  <pre><a moz-do-not-send="true"
 href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><o:p></o:p></pre>
  <pre>  <o:p></o:p></pre>
  <p class="MsoNormal"><br>
  <br>
  <br>
  <o:p></o:p></p>
  <pre>-- <o:p></o:p></pre>
  <pre><a moz-do-not-send="true"
 href="http://www.ironpythoninaction.com/">http://www.ironpythoninaction.com/</a><o:p></o:p></pre>
  <pre><a moz-do-not-send="true" href="http://www.voidspace.org.uk/blog">http://www.voidspace.org.uk/blog</a><o:p></o:p></pre>
  <pre><o:p> </o:p></pre>
  <pre>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.<o:p></o:p></pre>
  <pre><o:p> </o:p></pre>
  </div>
  </div>
  <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>