PrepAway - Latest Free Exam Questions & Answers

Which two actions should you recommend?

You are designing the deployment strategy for an ASP.NET Web application that consists of
multiple pages. The Web application will be deployed to a server that hosts multiple
ASP.NET applications. The Web application design includes; • Error pages named
LoginErrors.htm and GenericErrorPage.htm. • A subdirectory named Login that contains
only the Login.aspx page. You have the following requirements: • Display the
LoginErrors.htm page for all unhandled errors that are generated from the Login.aspx page.
• Display the GenericErrorPage.htm page for all other unhandled errors. You need to
recommend an approach for displaying the error pages. Which two actions should you
recommend? (Each correct answer presents part of the solution. Choose two.)

PrepAway - Latest Free Exam Questions & Answers

A.
Add the following XML element to the Machine.config file in the .NET Framework

installation folder: <customErrors defaultRedirecta”GenericErrorPage.htm” />

B.
Add the following XML element to the Machine.conftg file in the .NET Framework
installation folder: <customErrors defaultRedirect=”LoginErrors.htm” />

C.
Add the following XML element to the Web.config file in the root application directory:
<customErrors defaultRedirect=”GenericErrorPage.htm” />

D.
Add the following XML element to the Web.config file in the Login directory:
<customErrors defaultRedirect=”LoginErrors.htm” />


Leave a Reply