<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 20/07/2010 16:30, Funke, Matt wrote:
<blockquote
cite="mid:2C5C90D76B65DC47A65001FD937014B2016CBAC6@WSWD43.VishayPG.com"
type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
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;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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="WordSection1">
<p class="MsoNormal">I’ve really enjoyed <i>IronPython In Action</i>,
and have found it immensely helpful in my quest to understand
integrating Python with WPF. (I’m something of a newbie.)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Unfortunately, I’ve hit a conceptual wall with
Sliverlight. In particular, creating the <b><span
style="font-family: "Courier New";">app.xap</span></b> file for the
source code in <b><span style="font-family: "Courier New";">chapter13\13.1.3\ControlsExample1</span></b>
seems to be hitting a roadblock. Here’s the command I gave to Chiron
from within the chpter13 directory:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-family: "Courier New";">C:\Users\mfunke\Documents\Programming
Reference\Python\Libraries\IronPython\IronPython In
Action\sourcecode\chapter13>bin/Chiron /d:13.1.3/ControlsExample1
/z:app.xap<o:p></o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Chiron gave me this feedback:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-family: "Courier New";">Generating
XAP C:\Users\mfunke\Documents\Programming
Reference\Python\Libraries\IronPython\IronPython In
Action\sourcecode\chapter13\app.xap from
C:\Users\mfunke\Documents\Programming
Reference\Python\Libraries\IronPython\IronPython In
Action\sourcecode\chapter13\13.1.3\ControlsExample1<o:p></o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I then moved <b><span
style="font-family: "Courier New";">app.xap</span></b> from <b><span
style="font-family: "Courier New";">C:\Users\mfunke\Documents\Programming
Reference\Python\Libraries\IronPython\IronPython In
Action\sourcecode\chapter13</span></b> to <b><span
style="font-family: "Courier New";">C:\Users\mfunke\Documents\Programming
Reference\Python\Libraries\IronPython\IronPython In
Action\sourcecode\chapter13\13.1.3\ControlsExample1</span></b> and
opened <b><span style="font-family: "Courier New";">index.html</span></b>.
That’s what generated the error in the attached screenshot.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can anyone help me? How <b><i>should</i></b> I
be generating app.xap, and where should it live?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m running IronPython 2.6.1 for .NET 4.0, as
well as .NET 4.0 (naturally) and Silverlight 4. Thanks in advance for
any help you can give.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
<br>
Hey Matt,<br>
<br>
The IronPython in Action binaries include IronPython 2 (Python 2.5),
which unfortunately isn't compatible with Silverlight 4 due to core-clr
API changes (grrr). If you replace the IronPython binaries in the
examples with the IronPython 2.6.1 "IronPython for Silverlight"
binaries then all the code should "just work".<br>
<br>
I need to update the examples and get Manning to use the later version
- my apologies.<br>
<br>
All the best,<br>
<br>
Michael Foord<br>
<br>
<br>
<br>
<blockquote
cite="mid:2C5C90D76B65DC47A65001FD937014B2016CBAC6@WSWD43.VishayPG.com"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"> -- Best Regards,<o:p></o:p></p>
<p class="MsoNormal"> Matt Funke<o:p></o:p></p>
</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></pre>
</body>
</html>