Following the code exceptions (processed), it appears that MVC uses exceptions to check for management locations.
<% Html.RenderPartial("LogOnUserControl"); %>
The application works as expected, I see that this exception generates a couple of attempts in different places (Views, Shared). The same thing happens with other controls. Apparently MVC uses exceptions to check for various possible locations for a file.
IIRC using flow control exceptions is evil, and it's not cool. So am I doing something wrong or is MVC not cool anymore?
Note. When the IDE stops in all excepted exceptions, debugging is simplified, and I usually leave it turned on. Here's how I got to this exception from RenderPartial.
source
share