GIAC
GSSP-.NET · Question #63
(Topic 1) 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…
The correct answer is B. <customErrors defaultRedirect="errorpage.aspx" mode="on">. See the full explanation below for the reasoning.
Question
- (Topic 1)
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 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">
- C<customErrors defaultRedirect="servererror.aspx" mode="on">
- D<trace enabled="true" localOnly="false" />
How the community answered
(21 responses)- A5% (1)
- B81% (17)
- D14% (3)
Community Discussion
No community discussion yet for this question.