Developing ASP.NET MVC Web Applications — Question 150
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some questions sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You develop an ASP.NET web application that is self-hosted using Open Web Interface for .NET (OWIN) in a Microsoft Azure Worker role.
The web application throws exceptions.
You need to resolve the exceptions.
Solution: Use standard HttpModule and HttpHandler types.
Does the solution meet the goal?
Answer options
- A. Yes
- B. No
Correct answer: B
Explanation
The proposed solution does not meet the goal because ASP.NET applications using OWIN do not utilize standard HttpModule and HttpHandler for handling exceptions. Instead, OWIN has its own middleware pipeline for managing requests and exceptions, making the proposed solution inappropriate. Therefore, the correct answer is B.