nerdexam
GIAC

GSSP-NET · Question #116

GSSP-NET Question #116: Real Exam Question with Answer & Explanation

Sign in or unlock GSSP-NET to reveal the answer and full explanation for question #116. The question stem and answer options stay visible for context.

Question

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET 2005 as its application development platform. You create a Web service using the .NET Framework 2.0. You call a method in the Web service. The following exception is thrown in the Web service: client.System.Web.Services.Protocols.SoapException: Server was unable to process request. System.NullReferenceException: Object reference not set to an instance of an object. You find out that it is the following line of code that throws the exception: if (Session ["StoredValue"] == null) You must ensure that the method runs without throwing any exception. What will you do to accomplish this task?

Options

  • AModify the WebMethod attribute in the Web service so that the EnableSession property is
  • BAdd the following to the System.Web section of the Web.config file:
  • CAdd the following to the System.Web section of the Web.config file:
  • DIn the client code for the Web service's proxy object, assign a new instance of the
  • EIn the client code for the Web service's proxy object, assign a new instance of the

Unlock GSSP-NET to see the answer

You've previewed enough free GSSP-NET questions. Unlock GSSP-NET for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full GSSP-NET Practice