This is a PowerShell error. The DLR hosting interfaces overload Execute (and other methods) with generic and non-generic versions, and it appears that PowerShell won't allow calling of the generic version. For this to work, you'll need to find a way to force PowerShell to use the non-generic overload. I'm afraid my PS skills aren'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"><<a href="mailto:stephen@theleengs.com">stephen@theleengs.com</a>></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't work). Sorry to need to be led by the hand...now I get:<div><br></div><div><div>PS C:\Program Files\IronPython 2.0> [reflection.assembly]::loadFrom("C:\Program Files\IronPython 2.0\IronPython.dll")</div>
<div class="Ih2E3d">
<div><br></div><div>GAC Version Location</div><div>--- ------- --------</div><div>True v2.0.50727 C:\WINDOWS\assembly\GAC_MSIL\IronPython\2.0.0.0__31bf3...</div><div><br></div></div><div>PS C:\Program Files\IronPython 2.0> $py = [IronPython.Hosting.Python]::CreateEngine()</div>
<div>PS C:\Program Files\IronPython 2.0> $py.Execute("3")</div><div>Exception calling "Execute" with "1" argument(s): "Late bound operations cannot</div><div> be performed on types or methods for which ContainsGenericParameters is true."</div>
<div>At line:1 char:12</div><div>+ $py.Execute( <<<< "3")</div><div>PS C:\Program Files\IronPython 2.0> $py.Execute("print 'hello world!'")</div><div>Exception calling "Execute" with "1" argument(s): "Late bound operations cannot be performed on types or methods for which ContainsGenericParameters is true."</div>
<div>At line:1 char:12</div><div>+ $py.Execute( <<<< "print 'hello world!'")</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>