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 defaultRedirect=”GenericErrorPage.htm” />

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

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

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

Explanation:


Leave a Reply