nerdexam
GIAC

GSSP-NET · Question #297

You work as a Web Application Developer for SunInfo Inc. The company uses Visual Studio 2008 as its application development platform. You create a Web application using .NET Framework 3.5. You want…

The correct answer is C. Set the mode attribute of the customErrors element to On and the defaultRedirect attribute to an. See the full explanation below for the reasoning.

Question

You work as a Web Application Developer for SunInfo Inc. The company uses Visual Studio 2008 as its application development platform. You create a Web application using .NET Framework 3.5. You want to redirect users to a default error page if an unhandled error occurs within your site. Which of the following actions will you perform to accomplish the task?

Options

  • ASet the mode attribute of the customErrors element to Off and the defaultRedirect attribute to an
  • BSet the statusCode attribute of the error element to 404 and the redirect attribute to a custom
  • CSet the mode attribute of the customErrors element to On and the defaultRedirect attribute to an
  • DSet the redirect attribute of the error element to an error page within your site.

How the community answered

(59 responses)
  • A
    7% (4)
  • B
    3% (2)
  • C
    78% (46)
  • D
    12% (7)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice