[IronPython] exception during ExecuteFile, when file is on network share
dinov at exchange.microsoft.com
Tue Jul 29 09:30:23 PDT 2008
We're just using a StreamReader and reading all the bytes in so we're not doing anything special here.
There seem to be a lot of results for the problem (http://www.google.com/search?hl=en&q=.net+%22The+specified+network+name+is+no+longer+available.%22&start=10&sa=N) and many of them recommend looking at the event log (eventvwr) or upgrading network drivers. I doubt there's anything we're doing that would cause this but I also don't know why it'd only happen when we're doing the I/O either.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Troels Pil Thomsen
Sent: Tuesday, July 29, 2008 4:17 AM
To: users at lists.ironpython.com
Subject: [IronPython] exception during ExecuteFile, when file is on network share
I have a python 18.104.22.168 host in my c# app, and when doing a
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users