ASP.net MVC Routing Throws Exceptions as Normal Behavour?
问题 I was debugging my current project (ASP.net MVC 1.0 project) and stumbled upon slightly disturbing behavour. It seems that when the router is hunting for a referenced partial view aka <%Html.RenderPartial("AccountListControl", ViewData["AccountList"]); %> It cycles through it's default locations until it finds the correct spot. So it checks "Views\Shared\AccountListControl" and checks "Views\Home\AccountListControl" etc Once it finds a match - all is good. Bad locations are identified by the