Hi Jeff,<div><br></div><div>Oh my! Thanks! On Sunday I had compiled everything from scratch using new Windows Phone 7.1 project files. :-O</div><div><br></div><div>But I reached the same corner: expressions like 2 + 2 work, but 2 + 2.5 doesn&#39;t. Do I have to setup runtime options specific to WP7.1? I&#39;ve pasted the stack trace below. I&#39;ve heard somewhere there is a pure interpreted mode but I don&#39;t remember where...</div>
<div><br></div><div>I guessed this was due to some problem with my custom project files, so I didn&#39;t want to bother in the list (I already do it too much sorry! :-))</div><div><br></div><div>Best regards!</div><div>Mello </div>
<div><br></div><div>System.NotSupportedException</div><div><br></div><div><div>   at System.Reflection.MethodInfo.get_ReturnParameter()</div><div>   at Microsoft.Scripting.Actions.Calls.ReflectionOverloadInfo.get_ReturnParameter()</div>
<div>   at IronPython.Runtime.Binding.SlotOrFunction.get_MaybeNotImplemented()</div><div>   at IronPython.Runtime.Binding.PythonProtocol.MakeOneTarget(PythonContext state, SlotOrFunction target, PythonTypeSlot slotTarget, ConditionalBuilder bodyBuilder, Boolean reverse, DynamicMetaObject[] types)</div>
<div>   at IronPython.Runtime.Binding.PythonProtocol.MakeBinaryOperatorResult(DynamicMetaObject[] types, DynamicMetaObjectBinder operation, PythonOperationKind op, SlotOrFunction fCand, SlotOrFunction rCand, PythonTypeSlot fSlot, PythonTypeSlot rSlot, DynamicMetaObject errorSuggestion)</div>
<div>   at IronPython.Runtime.Binding.PythonProtocol.MakeSimpleOperation(DynamicMetaObject[] types, DynamicMetaObjectBinder binder, PythonOperationKind operation, DynamicMetaObject errorSuggestion)</div><div>   at IronPython.Runtime.Binding.PythonProtocol.MakeBinaryOperation(DynamicMetaObjectBinder operation, DynamicMetaObject[] args, PythonOperationKind opStr, DynamicMetaObject errorSuggestion)</div>
<div>   at IronPython.Runtime.Binding.PythonProtocol.Operation(BinaryOperationBinder operation, DynamicMetaObject target, DynamicMetaObject arg, DynamicMetaObject errorSuggestion)</div><div>   at IronPython.Runtime.Binding.PythonBinaryOperationBinder.FallbackBinaryOperation(DynamicMetaObject target, DynamicMetaObject arg, DynamicMetaObject errorSuggestion)</div>
<div>   at System.Dynamic.BinaryOperationBinder.FallbackBinaryOperation(DynamicMetaObject target, DynamicMetaObject arg)</div><div>   at System.Dynamic.DynamicMetaObject.BindBinaryOperation(BinaryOperationBinder binder, DynamicMetaObject arg)</div>
<div>   at System.Dynamic.BinaryOperationBinder.Bind(DynamicMetaObject target, DynamicMetaObject[] args)</div><div>   at System.Dynamic.DynamicMetaObjectBinder.Bind(Object[] args, ReadOnlyCollection`1 parameters, LabelTarget returnLabel)</div>
<div>   at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T](CallSite`1 site, Object[] args)</div><div>   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, Object arg0, Object arg1)</div>
<div>   at Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)</div><div>   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)</div><div>   at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](CodeContext arg0, FunctionCode arg1)</div>
<div>   at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)</div><div>   at IronPython.Compiler.PythonScriptCode.Run(Scope scope)</div><div>   at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)</div>
<div>   at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)</div><div>   at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink)</div><div>   at Microsoft.Scripting.SourceUnit.Execute(Scope scope)</div>
<div>   at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)</div><div>   at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String expression, ScriptScope scope)</div><div>   at IronPythonPhone.MainPage.button1_Click(Object sender, RoutedEventArgs e)</div>
<div>   at System.Windows.Controls.Primitives.ButtonBase.OnClick()</div><div>   at System.Windows.Controls.Button.OnClick()</div><div>   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)</div>
<div>   at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)</div><div>   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)</div>
</div><div><br></div><div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Tue, Mar 6, 2012 at 1:54 AM, Jeff Hardy <span dir="ltr">&lt;<a href="mailto:jdhardy@gmail.com">jdhardy@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Sun, Mar 4, 2012 at 5:21 AM, Cesar Mello &lt;<a href="mailto:cmello@gmail.com">cmello@gmail.com</a>&gt; wrote:<br>

&gt; Hi!<br>
&gt;<br>
&gt; I created a Silverlight/WP project using Microsoft Visual Studio 2010<br>
&gt; Express for Windows Phone. Added references to all the DLLs in<br>
&gt; IronPython-2.7.2rc1\Platforms\Sl4-WP71 . When I run the application I get<br>
&gt; the following error:<br>
&gt;<br>
&gt; File or assembly name &#39;Microsoft.Scripting, Version=1.1.0.20,<br>
&gt; Culture=neutral, PublicKeyToken=7F709C5B713576E1&#39;, or one of its<br>
&gt; dependencies, was not found.<br>
&gt;<br>
&gt; Just curious if someone else has tried the binaries in WP7.<br>
&gt;<br>
&gt; Any suggestions, tests, information or even recommendations for debugging<br>
&gt; are welcome!<br>
<br>
</div>Hi Cesar,<br>
I was just trying to build an app and hit a similar error. Check to<br>
make sure that the assembly references are set to &quot;Copy Local&quot;<br>
(right-click on References-&gt;IronPython et al., Properties, Copy Local<br>
= True).<br>
<span class="HOEnZb"><font color="#888888"><br>
- Jeff<br>
</font></span></blockquote></div><br></div></div>