ironpython, exception in mscorlib when reading .py file from networkshare

M

mindmind

Hello,

I have a ironpython 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.

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
 
F

Fuzzyman

Hello,

I have a ironpython 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.

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

I don't know the answer - I do know that .NET permissions issues and
accessing network resources are a bit 'weird'. You're likely to get an
answer if you ask on the IronPython mailing list.

Michael Foord
 
M

mindmind

I don't know the answer - I do know that .NET permissions issues and
accessing network resources are a bit 'weird'. You're likely to get an
answer if you ask on the IronPython mailing list.

I had it running through the night, ~100 times, 25 of these gave the
above exception.
Hard to see any pattern.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,785
Latest member
undedgini

Latest Threads

Top