nerdexam
GIAC

GSSP-NET · Question #10

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2008 as its application development platform. You create an ASP.NET Web application using the .NET Framework 3.5. The…

The correct answer is A. <customErrors mode="On" defaultRedirect="Error.htm">. See the full explanation below for the reasoning.

Question

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2008 as its application development platform. You create an ASP.NET Web application using the .NET Framework 3.5. The application contains two HTML pages named Error.htm and PageNotFound.htm. You want to make sure that the following requirements are met:

  • When any user requests a page that does not exist, the

PageNotFound.htm page is displayed.

  • When any other error occurs, the Error.htm page is displayed.

Which of the following code segments will you add to the Web.config file to accomplish this task?

Options

  • A<customErrors mode="On" defaultRedirect="Error.htm">
  • B<customErrors mode="Off">
  • C<customErrors mode="On">
  • D<customErrors mode="Off" defaultRedirect="Error.htm">

How the community answered

(18 responses)
  • A
    83% (15)
  • B
    6% (1)
  • C
    11% (2)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice