Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 1.27 KB

error-timeout-while-debugging-web-services.md

File metadata and controls

38 lines (33 loc) · 1.27 KB
description title ms.date ms.topic dev_langs helpviewer_keywords author ms.author manager ms.subservice
When you are stepping into an XML Web service from calling code, the call may sometimes time out, with the result being that you cannot continue debugging.
Timeout While Debugging Web Services
11/04/2016
error-reference
CSharp
VB
FSharp
C++
debugger, Web application errors
XML Web services, timeout while debugging
mikejo5000
mikejo
mijacobs
debug-diagnostics

Error: Timeout While Debugging Web Services

When you are stepping into an XML Web service from calling code, the call may sometimes time out, with the result being that you cannot continue debugging. You may see an error message such as this.

An unhandled exception of type 'System.Net.WebException' occurred in
system.Web.services.dll
Additional information: The operation has timed-out.

Solution

To avoid this problem, set the timeout value for the call to the XML Web service to infinite, as shown in this example:

Service1 obj = new Service1();
obj.TimeOut = -1; // infinite time out.

See also