.Net Framework >> System.IO.IOException: The semaphore timeout period has expired.

by Scott McFadden » Tue, 21 Feb 2006 04:34:53 GMT

I have a .net service on a Win2003 server box that periodically attempts to
move files
from a local path to a UNC path on another Win2003 server box. I use
System.IO.File.Move to accomplish this task. Unforunately, this causes the
following exception to be thrown intermittently:
Exception Info: System.IO.IOException: The semaphore timeout period has
expired.

at System.IO.__Error.WinIOError(Int32 errorCode, String str)

at System.IO.File.Move(String sourceFileName, String destFileName)

Anyone else have this problem?



.NET Framework 1.1

Win2003 SP1



thanks!



.Net Framework >> System.IO.IOException: The semaphore timeout period has expired.

by perrin820 » Sat, 11 Mar 2006 05:41:15 GMT


High Scott,

I have just receieved this erro while doing a BufferedStream->Write
operation. Did you ever track this error down?

Thanks,

-jon-

.Net Framework >> System.IO.IOException: The semaphore timeout period has expired.

by Scott McFadden » Wed, 05 Apr 2006 10:14:51 GMT

Never tracked it down. Saw some google group links mentioning a similar
problem with the UNC path being excessively long?

Similar Threads

1. damn messag"Timeout expired.The timeout period elapsed prior to completion of th

When I'm Runung An insert Sql Stored procedure on SQL 
SERVER after some seconds this message is handled.
I have tested this SP on Query Analyzer more and more,the 
execution time in Query Analyzer is about 45 seconds.
But in my program , the progarm stop responding and then 
this exception thrown.
the original message is:
"Timeout expired.  The timeout period elapsed prior to 
completion of the operation or the server is not 
responding."

2. Timeout expired. The timeout period elapsed ....Possible Solution - ADO.Net

3. Fix for "timeout period expired prior to completion"

So using C#/ADO.NET and SQL Server 7.0 I recently ran into a bizarre
problem.  Queries would run fine--and fast--in Query Analyzer, but
would timeout when running through ADO.NET.  It wasn't all queries,
just ones that returned a significant number of rows, say over 100.
The code hadn't changed in a while, and I didn't upgrade the database
recently, so it was pretty bizarre.

I saw some postings around with others having a similar issue and no
real solutions.  Some suggested to bump up the timeout value in the
connection string or SqlCommand object.  That didn't work for me.

Here's what I discovered:  a recent automatic Windows update must have
mucked with some db connection setting.

To fix the problem, I used the SQL Server Client Network Utility,
making sure the TCP/IP protocol was enabled and using port 1433.  I
also went to the alias tab, and for the alias I defined for my db I
had to uncheck the "Dynamically determine port" checkbox and specify
port 1433 explicitly.  After I performed these steps the timeout
problem went away.

4. "System.IO.IOException: The device is not ready asp.net" - Asp.Net

5. System.IO.IOException: Unable to read data from the transport connection

I have a web service that makes a request to several different xml
feeds. I am having problems with one in particular and the connection
keeps reporting the following error:

System.IO.IOException: Unable to read data from the transport
connection. ---> System.Net.Sockets.SocketException: An existing
connection was forcibly closed by the remote host

I have searched the net but cannot find out what this error is about.
The code does not use a proxy, and keep alives are turned off. The
server does not use a proxy either.

The application is written in VB .NET 1.1, and the server is a Windows
2003 Standard Edition (fully patched).

Thanks,

Nigel

6. System.IO.IOException - Asp.Net

7. ASP.NET System.IO.IOException on c:\windows\temp\xxxxxxxx.dll

Hi,

I have a large scale web application with about 200 users.

Every few hours I get this error message:

"The process cannot access the file c:\windows\temp\xxxxxxx.dll"  (The xxxxx 
is a random characters)

We are using ASP.NET 1.1 on Widnows 2003 SP1.

Did anyone ever faced this issue?. I am clueless....

8. System.IO.IOException' occurred in mscorlib.dll