PrepAway - Latest Free Exam Questions & Answers

Which approach should you recommend?

You need to design an exception-handling strategy for the Web application. Which
approach should you recommend?

PrepAway - Latest Free Exam Questions & Answers

A.
Catch all unhandled exceptions in the Application_Error event of the Global.asax file,
send an email message containing the exception details, clear all errors, and redirect the
user to a generic error page.

B.
Add a customErrors section in the configuration file, with mode=”On” and default
Redirect=”/error.aspx”.

C.
Add a customErrors section in the configuration file, with mode=”RemoteOnly” and
defauftRedirect=’/error.aspx”.

D.
Catch all unhandled exceptions in the Page_Error event of each page, send an e-mail
message containing the exception details, clear all errors, and redirect the user to a generic
error page.

Explanation:


Leave a Reply