This is a PowerShell error. &nbsp;The DLR hosting interfaces overload Execute (and other methods) with generic and non-generic versions, and it appears that PowerShell won&#39;t allow calling of the generic version. &nbsp;For this to work, you&#39;ll need to find a way to force PowerShell to use the non-generic overload. &nbsp;I&#39;m afraid my PS skills aren&#39;t up to that task.<br>
<br><div class="gmail_quote">On Tue, Dec 30, 2008 at 12:39 PM, Stephen Ng <span dir="ltr">&lt;<a href="mailto:stephen@theleengs.com">stephen@theleengs.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks, dropping all the dlls from the IronPython2 directory into the GAC gets me a little further (adding to the path didn&#39;t work). &nbsp;Sorry to need to be led by the hand...now I get:<div><br></div><div><div>PS C:\Program Files\IronPython 2.0&gt; [reflection.assembly]::loadFrom(&quot;C:\Program&nbsp;Files\IronPython 2.0\IronPython.dll&quot;)</div>
<div class="Ih2E3d">
<div><br></div><div>GAC &nbsp; &nbsp;Version &nbsp; &nbsp; &nbsp; &nbsp;Location</div><div>--- &nbsp; &nbsp;------- &nbsp; &nbsp; &nbsp; &nbsp;--------</div><div>True &nbsp; v2.0.50727 &nbsp; &nbsp; C:\WINDOWS\assembly\GAC_MSIL\IronPython\2.0.0.0__31bf3...</div><div><br></div></div><div>PS C:\Program Files\IronPython 2.0&gt; $py = [IronPython.Hosting.Python]::CreateEngine()</div>

<div>PS C:\Program Files\IronPython 2.0&gt; $py.Execute(&quot;3&quot;)</div><div>Exception calling &quot;Execute&quot; with &quot;1&quot; argument(s): &quot;Late bound operations cannot</div><div>&nbsp;be performed on types or methods for which ContainsGenericParameters is true.&quot;</div>

<div>At line:1 char:12</div><div>+ $py.Execute( &lt;&lt;&lt;&lt; &quot;3&quot;)</div><div>PS C:\Program Files\IronPython 2.0&gt; $py.Execute(&quot;print &#39;hello world!&#39;&quot;)</div><div>Exception calling &quot;Execute&quot; with &quot;1&quot; argument(s): &quot;Late bound operations cannot&nbsp;be performed on types or methods for which ContainsGenericParameters is true.&quot;</div>

<div>At line:1 char:12</div><div>+ $py.Execute( &lt;&lt;&lt;&lt; &quot;print &#39;hello world!&#39;&quot;)</div><div><br><div class="gmail_quote"><br></div></div></div>
<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></blockquote></div><br>