Maria works as a Software Developer for MarcLync Inc. She creates an XML Web service, named MyWebService, using Visual Studio .NET. Maria wants to debug MyWebService. Therefore, she attaches a debugger to the Web service process. However, Maria notices that whenever MyWebService is executed, it throws an exception System.Net.WebException after a certain time period. The exception displays the message "The current operation has timed-out." Maria wants to modify the code in MyWebService.
Which of the following actions will Maria take in order to resolve this issue?
A . Set the timeout value for the MyWebService call to zero.
B . Set the timeout value for the MyWebService call to false.
C . Add an exception handling block.
D . Set the timeout value for the MyWebService call to -1.
Answer: D
Leave a Reply