PrepAway - Latest Free Exam Questions & Answers

What should you do?

You are creating an ASP.NET application by using the .NET Framework 3.5.

The application will reference a third-party component. The component might throw an unhandled exception from a background thread, causing the ASP.NET worker process to be terminated.

You need to ensure that any unhandled exceptions are logged before the application terminates.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Handle the AppDomain.CurrentDomain.UnhandledException event.

B.
Add a try/catch block to the Page_Load method.

C.
Configure the application to use a custom error page.

D.
Handle the Application_Error event.


Leave a Reply