[IronPython] exception during ExecuteFile, when file is on network share

Troels Pil Thomsen TPT at kamstrup.dk
Tue Jul 29 04:16:46 PDT 2008


Hello, 
 
I have a python 1.1.1.0 host in my c# app, and when doing a 
  engine.ExecuteFile(file);
i often get the error below, when "file" is on a network share :
(winXp client , windows ??? server)
 
21-07-2008 12:47:28 : Traceback (most recent call last):
21-07-2008 12:47:28 :   File c:\sandbox\xxx.cs
21-07-2008 12:47:28 :   File c:\sandboxx\yyy.cs
21-07-2008 12:47:28 :   File mscorlib, line unknown, in ReadAllBytes
21-07-2008 12:47:28 :   File mscorlib, line unknown, in Read
21-07-2008 12:47:28 :   File mscorlib, line unknown, in ReadCore
21-07-2008 12:47:28 :   File mscorlib, line unknown, in WinIOError
21-07-2008 12:47:28 : IOError: The specified network name is no longer
available.
21-07-2008 12:47:28 :  
 
Exception is caught before first line in python is executed.
 
If the file is not found , it fails with another IOError ("File not
found") and another path down through mscorlib.
 
Other parts of the program is also accessing the network (for copying
files etc), and never fails, 
so networks connection is "ok" (maybe not perfect, but at least
present.)
 
Is the ExecuteFile reading the contents of the .py file differently than
a "copy" primitive is (other timeout/retry values) ?
 
Does anyone have any ideas of how to setup windows , ironpython host or
.NET lib differently, to stop it doing this ? Fallback solution is to
copy file locally before execution, but I would rather fix this.
 
thx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080729/c22bfb49/attachment.htm>


More information about the Users mailing list