GSSP-NET · Question #130
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 B. <customErrors defaultRedirect="errorpage.aspx" mode="on"> <error statusCode="500". 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 ensure that when an unhandled exception occurs on the site, a custom error page errorpage.aspx is displayed. Also, you want to ensure that when the HTTP 500 error GIAC GSSP-.NET Exam occurs, the servererror.aspx page is displayed. Which of the following settings will you add inside the system.web section of the Web.config file to accomplish the task?
Options
- A<compilation debug="true">
- B<customErrors defaultRedirect="errorpage.aspx" mode="on"> <error statusCode="500"
- C<customErrors defaultRedirect="servererror.aspx" mode="on"> <error statusCode="500"
- D<trace enabled="true" localOnly="false" />
How the community answered
(15 responses)- A7% (1)
- B73% (11)
- C13% (2)
- D7% (1)
Community Discussion
No community discussion yet for this question.