<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I have .NET 3.5 too, and I don't see any strange errors. From your error, it looks like it's having a hard time loading the required assemblies, but I'm not fluent in German so it's just a guess on my part.<br><br>--- On <b>Tue, 9/30/08, Dirk Krause <i>&lt;dirk.krause@pixelpark.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Dirk Krause &lt;dirk.krause@pixelpark.com&gt;<br>Subject: AW: AW: [Python.NET] error messages<br>To: "Feihong Hsu" &lt;hsu.feihong@yahoo.com&gt;, "Craig Farrow" &lt;craig_farrow@sil.org&gt;<br>Cc: pythondotnet@python.org<br>Date: Tuesday, September 30, 2008, 1:57 PM<br><br><div id="yiv291929619"><title></title>
 
<div id="idOWAReplyText5859" dir="ltr">
<div dir="ltr"><font size="2" color="#000000" face="Arial">hmmm ...&nbsp;I have SP1 for sure, but also .NET 3.5 - maybe that is the problem?</font></div></div>
<div dir="ltr"><br>
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>Von:</b> Feihong Hsu [mailto:hsu.feihong@yahoo.com]<br><b>Gesendet:</b> Di 30.09.2008 20:44<br><b>An:</b> Craig Farrow; Dirk Krause<br><b>Cc:</b> pythondotnet@python.org<br><b>Betreff:</b> Re: AW: [Python.NET] error messages<br></font><br></div>
<div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top">Usually you can find a clue by looking in Control Panel &gt; Add/Remove Programs. If you got SP1 or something like that, it'll be listed.<br><br>--- On <b>Tue, 9/30/08, Dirk Krause <i>&lt;dirk.krause@pixelpark.com&gt;</i></b> wrote:<br>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;">From: Dirk Krause &lt;dirk.krause@pixelpark.com&gt;<br>Subject: AW: [Python.NET] error messages<br>To: "Feihong Hsu" &lt;hsu.feihong@yahoo.com&gt;, "Craig Farrow" &lt;craig_farrow@sil.org&gt;<br>Cc: pythondotnet@python.org<br>Date: Tuesday, September 30, 2008, 12:35 PM<br><br>
<div id="yiv647884331">
<div id="idOWAReplyText90095" dir="ltr">
<div dir="ltr"><font size="2" color="#000000" face="Arial">nah, doesnt work here:</font></div>
<div dir="ltr">D:\projects\pyov&gt;helloform.py</div>
<div dir="ltr">Unbehandelte Ausnahme: System.IO.FileLoadException: Die Datei oder Assembly Python.Runtime, Version=2.0.0.2, Culture=neu<br>tral, PublicKeyToken=64e14e845abf2e60 oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinitio<br>n der Assembly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)<br>Dateiname: Python.Runtime, Version=2.0.0.2, Culture=neutral, PublicKeyToken=64e14e845abf2e60<br>&nbsp;&nbsp; bei Python.Runtime.PythonConsole.Main(String[] args)</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">I probably have to compile it.</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">Is there a way to find out which .NET version is installed?</div></div>
<div dir="ltr"><br>
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>Von:</b> Feihong Hsu [mailto:hsu.feihong@yahoo.com]<br><b>Gesendet:</b> Di 30.09.2008 18:56<br><b>An:</b> Craig Farrow; Dirk Krause<br><b>Cc:</b> pythondotnet@python.org<br><b>Betreff:</b> Re: [Python.NET] error messages<br></font><br></div>
<div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top">This problem sounds familiar. Perhaps you guys are using .NET 2.0 with SP1 applied? Then this blog post of mine might help:<br><br>http://feihonghsu.blogspot.com/2008/02/pythonnet-20-for-net-sp1_15.html<br><br>If you want, you can try the binary that I made instead of applying the patch yourself.<br><br><br>--- On <b>Tue, 9/30/08, Dirk Krause <i>&lt;dirk.krause@pixelpark.com&gt;</i></b> wrote:<br>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;">From: Dirk Krause &lt;dirk.krause@pixelpark.com&gt;<br>Subject: Re: [Python.NET] error messages<br>To: "Craig Farrow" &lt;craig_farrow@sil.org&gt;<br>Cc: pythondotnet@python.org<br>Date: Tuesday, September 30, 2008, 8:50 AM<br><br>
<div id="yiv593598479">
<div id="idOWAReplyText91230" dir="ltr">
<div dir="ltr"><font size="2" color="#000000" face="Arial">right you are again. splitter works here, too.</font></div>
<div dir="ltr"><font size="2" face="Arial"></font>&nbsp;</div>
<div dir="ltr"><font size="2" face="Arial">Can you confirm that helloform runs when you disable line 33?</font></div>
<div dir="ltr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Register the event handler<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # self.button.Click += self.button_Click<br></div></div>
<div dir="ltr"><br>
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>Von:</b> Craig Farrow [mailto:craig_farrow@sil.org]<br><b>Gesendet:</b> Di 30.09.2008 15:25<br><b>An:</b> Dirk Krause<br><b>Cc:</b> pythondotnet@python.org<br><b>Betreff:</b> Re: AW: [Python.NET] error messages<br></font><br></div>
<div>Ah, yes. On my system (Vista, Python 2.4 or 2.5, pythonnet-2.0-alpha2) only splitter.py works out of the three demos. I haven't tried to figure out why...<br><br>Craig.<br><br>9/30/2008 9:13 PM dï, Dirk Krause pi¨dimi¨: 
<blockquote cite="" type="cite">
<div id="idOWAReplyText37734" dir="ltr">
<div dir="ltr"><font size="2" color="#000000" face="Arial">much better!&nbsp;&nbsp; ...python itself runs now.</font></div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr"><font size="2" color="#000000" face="Arial">but not really good either, trying to run helloform.py gives me:</font></div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">D:\projects\pyov&gt;helloform.py</div>
<div dir="ltr">Unbehandelte Ausnahme: System.TypeInitializationException: Der Typeninitialisierer für Python.Runtime.CodeGenerator hat<br>eine Ausnahme verursacht. ---&gt; System.InvalidCastException: Das Objekt des Typs System.Reflection.Module kann nicht in T<br>yp System.Reflection.Emit.ModuleBuilder umgewandelt werden.<br>&nbsp;&nbsp; bei System.Reflection.Emit.AssemblyBuilderData.GetInMemoryAssemblyModule()<br>&nbsp;&nbsp; bei System.AppDomain.InternalDefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, String dir, Evide<br>nce evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, St<br>ackCrawlMark&amp; stackMark, IEnumerable`1 unsafeAssemblyAttributes)<br>&nbsp;&nbsp; bei System.AppDomain.DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access)<br>&nbsp;&nbsp; bei Python.Runtime.CodeGenerator..cctor()<br>&nbsp;&nbsp; --- Ende der internen
 Ausnahmestapelüberwachung ---<br>&nbsp;&nbsp; bei Python.Runtime.DelegateManager.GetDispatcher(Type dtype)<br>&nbsp;&nbsp; bei Python.Runtime.DelegateManager.GetDelegate(Type dtype, IntPtr callable)<br>&nbsp;&nbsp; bei Python.Runtime.EventObject.AddEventHandler(IntPtr target, IntPtr handler)<br>&nbsp;&nbsp; bei Python.Runtime.EventBinding.nb_inplace_add(IntPtr ob, IntPtr arg)<br>&nbsp;&nbsp; bei Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)<br>&nbsp;&nbsp; bei Python.Runtime.MetaType.tp_call(IntPtr tp, IntPtr args, IntPtr kw)<br>&nbsp;&nbsp; bei Python.Runtime.Runtime.Py_Main(Int32 argc, String[] argv)<br>&nbsp;&nbsp; bei Python.Runtime.PythonConsole.Main(String[] args)</div></div>
<div dir="ltr"><br>
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>Von:</b> Craig Farrow [<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="mailto:craig_farrow@sil.org">mailto:craig_farrow@sil.org</a>]<br><b>Gesendet:</b> Di 30.09.2008 14:53<br><b>An:</b> Dirk Krause<br><b>Cc:</b> <a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="mailto:pythondotnet@python.org">pythondotnet@python.org</a><br><b>Betreff:</b> Re: [Python.NET] error messages<br></font><br></div>
<div>Try the UCS2 directory.<br><br>Craig.<br><br>9/30/2008 5:54 PM dï, Dirk Krause pi¨dimi¨: 
<blockquote cite="" type="cite">
<div><font size="2" color="#000000" face="Arial">Hi,</font></div>
<div>&nbsp;</div>
<div><font size="2" face="Arial">I get the following error message when trying to run the python.exe from python2.5-UCS4 (I have a fully installed Python 2.5), any ideas? Vista professional here.</font></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><font size="2" color="#000000" face="Arial">... unfortunately in german:</font></div>
<div><font size="2" face="Arial">"""</font></div>
<div>Unbehandelte Ausnahme: System.IO.FileLoadException: Die Datei oder Assembly Python.Runtime, Version=0.0.0.0, Culture=neu<br>tral, PublicKeyToken=null oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assemb<br>ly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)<br>Dateiname: Python.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null<br>&nbsp;&nbsp; bei Python.Runtime.Runtime.PyUnicode_FromUnicode(String s, Int32 size)<br>&nbsp;&nbsp; bei Python.Runtime.Runtime.Initialize()<br>&nbsp;&nbsp; bei Python.Runtime.PythonEngine.Initialize()<br>&nbsp;&nbsp; bei Python.Runtime.PythonConsole.Main(String[] args)</div>
<div>"""</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>&nbsp; Dirk</div><pre><hr size="4" width="90%"><br>_________________________________________________<br>Python.NET mailing list - <a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="mailto:PythonDotNet@python.org">PythonDotNet@python.org</a><br><a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://mail.python.org/mailman/listinfo/pythondotnet">http://mail.python.org/mailman/listinfo/pythondotnet</a></pre></blockquote></div></blockquote></div></div><pre>_________________________________________________<br>Python.NET mailing list - PythonDotNet@python.org<br>http://mail.python.org/mailman/listinfo/pythondotnet</pre></blockquote></td></tr></tbody></table><br></div></div></blockquote></td></tr></tbody></table><br></div></div></blockquote></td></tr></table><br>