GIAC
GSSP-NET · Question #59
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 D. Set the mode attribute of the customErrors element to On and the defaultRedirect attribute to an error page. 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 error page
- BSet the statusCode attribute of the error element to 404 and the redirect attribute to a custom error page.
- CSet the redirect attribute of the error element to an error page within your site.
- DSet the mode attribute of the customErrors element to On and the defaultRedirect attribute to an error page
How the community answered
(66 responses)- A3% (2)
- B8% (5)
- C15% (10)
- D74% (49)
Community Discussion
No community discussion yet for this question.