You need to examine the state of the application when exceptions are thrown

You are developing an ASP.NET MVC application by using Visual Studio 2012. The
application throws and handles exceptions when it runs. You need to examine the state of
the application when exceptions are thrown. What should you do?

You are developing an ASP.NET MVC application by using Visual Studio 2012. The
application throws and handles exceptions when it runs. You need to examine the state of
the application when exceptions are thrown. What should you do?

A.
From the DEBUG menu in Visual Studio 2012, select Exceptions. Enable the Thrown
check box for Common Language Runtime Exceptions.

B.
From the DEBUG menu in Visual Studio 2012, select Exceptions. Disable the Userunhandled check box for Common Language Runtime Exceptions.

C.
Add the following code to the Web.config file of the application.
<customErrors mode=”On”>
<error statusCode=”500″ redirect=”CustomErrors.html” />
</customErrors>

D.
Add the following code to the Web.config file of the application.
<customErrors mode=”On” >
<error statusCode=”404″ redirect=”CustomErrors.html”/>
</customErrors>



Leave a Reply 2

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


Piter

Piter

There is similar question where the answer is B. What is the different?