I\'m getting a stack overflow error when I try to call a partial view from the master.
The Partial View:
<%@ Control Language=\"C
I have seen this error before. In my case it happened when i returned a call to View() rather than PartialView() for Html.RenderAction or Html.Action in my action methods.
Hope this helps someone.
What happens when you change
<%= Html.Action("TestLogin", "Members")%>
to
<%= Html.RenderPartial("TestLogin", "Members");%>
?
Please also note there is a ; at the end of the command. Miss this and you'll get another error.
I got the exact same thing because I was loading a user control that was essentially a menu bar, but full of Html.Action(), rather than Html.ActionLink(), so it was continuously calling the Action and because it went back to a page that inherited the same masterpage, was calling it again...and again...and again.
So yeah my problem was I was using the wrong keyword.