Article ID: 815209 - Last Review: May 12, 2007 - Revision: 2.6 BUG: You receive a "The operation has timed-out" error message when you access a Web service or when you use the IPAddress classOn This PageSYMPTOMSIn Microsoft Visual Studio .NET 2003, when you try to add a
Web reference to a Web service, or when you call a Web service method, you may
receive the following error message: There was an error downloading 'http://WebServerName/WebServicePath/WebServiceName'. The operation has timed-out. Note WebServerName is a placeholder for the name of your Web server, WebServicePath is a placeholder for the path of the Web service, and WebServiceName is the name of the Web service. In addition, when you use the IPAddress class, you may receive a "System.TypeInitializationException" exception. For example, when you use the Web Service Description Language tool (Wsdl.exe) to try to create a Web service proxy file, you may receive the following error message: Unhandled Exception: System.TypeInitializationException: The type initializer for "System.Net.Sockets.Socket" threw an exception. ---> System.Net.Sockets.SocketException: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full at System.Net.Sockets.Socket.InitializeSockets() at System.Net.Sockets.Socket..cctor() Note You do not receive the previous error messages when you use Microsoft .NET Framework v1.0. CAUSEWhen you install a protocol or a network adapter on your
computer, the operating system creates a protocol binding between the network
adapters and the protocols that are installed on your computer. Typically, a
computer can store up to 50 protocol binding details. Therefore, if the number
of protocol bindings exceeds 50, and you use the IPAddress class directly or
indirectly (such as when you try to add a Web reference or when you call a Web
service method), you receive the error messages that are mentioned in the
"Symptoms" section of this article. Notes
Collapse this image ![]() 119591
(http://support.microsoft.com/kb/119591/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
RESOLUTIONTo resolve this problem, you must reduce the number of
protocol bindings on your computer to less than 50. To do this, use one of the
following methods:
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
MORE INFORMATIONSteps to Reproduce the Problem
REFERENCESFor more information, visit the following Microsoft
Developer Network (MSDN) Web sites: IPAddress Class (http://msdn2.microsoft.com/en-us/library/system.net.ipaddress(vs.71).aspx) TypeInitializationException Class (http://msdn2.microsoft.com/en-us/library/system.typeinitializationexception(vs.71).aspx)
| Article Translations
|

Back to the top

