nerdexam
GIAC

GSSP-.NET · Question #438

(Topic 4) 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…

The correct answer is D. Set the timeout value for the MyWebService call to -1. See the full explanation below for the reasoning.

Question

  • (Topic 4)

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?

Options

  • ASet the timeout value for the MyWebService call to zero.
  • BSet the timeout value for the MyWebService call to false.
  • CAdd an exception handling block.
  • DSet the timeout value for the MyWebService call to -1.

How the community answered

(51 responses)
  • A
    4% (2)
  • B
    8% (4)
  • C
    12% (6)
  • D
    76% (39)

Community Discussion

No community discussion yet for this question.

Full GSSP-.NET Practice