<div>PLEASE IGNORE MY PREVIOUS POST with the same title, I accidentally sent it before I was finished cleaning up the code.</div><div><br></div><div>Hi there,<br></div><div>I have a problem with my application. It&#39;s written in C# and embeds IronPython. In C#, I have a class that looks like this:</div>
<div><br></div><div>public class foo<br>{<br>    public foo()<br>

    {<br>               ...<br>    }<br>    ...<br>}<br></div><div><br></div><div>I put this into the ScriptScope I use by doing:</div><div><br></div><div>scope.SetVariable(&quot;fooclass&quot;, typeof(foo));</div><div><br></div>


<div>Operations like: a = fooclass() work without any problem, but the following IronPython does not work and raises the error: Cannot create instances of RuntimeType because it has no public constructors. Code:</div><div>

<br></div><div>class bar(fooclass):<br>    def __init__(self):<br>               Name = &quot;Unused&quot;<br>    ...</div><div><br></div><div>barobject = bar()<br></div><div><br></div><div>Well, I can&#39;t really say what this is about. Is it a Bug in IP or anything like a limitation?<br>
</div><div>Greetings, Marcel</div>