What should you do?

You are developing an ASP.NET MVC application. The application includes the following HomeController class. Line numbers are included for reference only.

During testing, all errors display an ASP.NET error page instead of the expected error view.
You need to ensure that the error view displays when errors occur.
What should you do?
A. Replace line 01 with the following code segment:
[HandleError(View="Error")]
B. In the web.config file, set the value of the customErrors property to On.
C. Replace line 01 with the following code segment:
[HandleError(ExceptionType=typeof(SystemException))]
D. Create a custom error page named Error.aspx. Save the file in the ViewsShared folder for the project.

microsoft-exams

One thought on “What should you do?

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.