<br>
<div><span class="gmail_quote">On 4/24/07, <b class="gmail_sendername">Dino Viehland</b> <<a href="mailto:dinov@exchange.microsoft.com">dinov@exchange.microsoft.com</a>> wrote:</span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Oh, it seems to be the presence of the '.dll' in the filename (although I still haven't looked too deeply to understand the exception). See below for the 3 different variations I've tried. The .NET loader will append .dll/.exe for you automatically.
<br><br>F:\repro\foo\Foo\bin\Debug>dir<br>Volume in drive F is New Volume<br>Volume Serial Number is F62E-82C1<br><br>Directory of F:\repro\foo\Foo\bin\Debug<br><br>04/23/2007 01:45 PM <DIR> .<br>04/23/2007 01:45 PM <DIR> ..
<br>04/23/2007 01:42 PM 4,096 Foo.Bar.dll<br>04/23/2007 01:42 PM 11,776 Foo.Bar.pdb<br>04/23/2007 01:42 PM 4,096 Foo.exe<br>04/23/2007 01:42 PM 11,776 Foo.pdb<br>04/10/2007 10:17 AM 71,016
ipy.exe<br>04/10/2007 10:17 AM 62,824 ipyw.exe<br>04/10/2007 10:17 AM 50,536 IronMath.dll<br>04/10/2007 10:17 AM 1,373,544 IronPython.dll<br>04/23/2007 01:45 PM <DIR> tmp
<br> 8 File(s) 1,589,664 bytes<br> 3 Dir(s) 35,566,551,040 bytes free<br><br>F:\repro\foo\Foo\bin\Debug>.\ipy.exe<br>IronPython 1.1 (1.1) on .NET 2.0.50727.1318<br>Copyright (c) Microsoft Corporation. All rights reserved.
<br>>>> import clr<br>>>> clr.AddReferenceToFile('Foo.bar.dll')<br>>>> import Foo.Bar<br>Traceback (most recent call last):<br>File , line 0, in <stdin>##14<br>File , line 0, in __import__##7
<br>SystemError: F:\repro\foo\Foo\bin\Debug\Foo.exe is not pre-compiled module; try again after deleting it.<br>>>> ^Z<br><br>F:\repro\foo\Foo\bin\Debug>.\ipy.exe<br>IronPython 1.1 (1.1) on .NET 2.0.50727.1318
<br>Copyright (c) Microsoft Corporation. All rights reserved.<br>>>> import clr<br>>>> clr.AddReference('Foo.bar.dll')<br>>>> import Foo.Bar<br>Traceback (most recent call last):<br>File , line 0, in <stdin>##14
<br>File , line 0, in __import__##7<br>SystemError: F:\repro\foo\Foo\bin\Debug\Foo.exe is not pre-compiled module; try again after deleting it.<br>>>> ^Z<br><br>F:\repro\foo\Foo\bin\Debug>ipyd<br>IronPython console: IronPython
2.0 (<a href="http://2.0.0.0">2.0.0.0</a>) on .NET 2.0.50727.1318<br>Copyright (c) Microsoft Corporation. All rights reserved.<br>>>> import clr<br>>>> clr.AddReference('foo.bar')<br>>>> import
Foo.Bar<br>>>> dir(Foo.Bar)<br>['Bar']<br>>>></blockquote>
<div> </div>
<div>Was the switching to another executable intentional?<br> </div>