I am converting a WebForms application to Razor and everything works fine except when I try to use Html.RenderAction. Whenever I call this, I get a StackOverflowException. Does anyone have an idea on what might be causing this?
The template for my action looks like this:
@model dynamic
should be rendering this
In my _Layout.cshtml file I render the action like this:
@{Html.RenderAction("MyPartialAction");}
My _ViewStart.cshtml file looks as follows:
@{
this.Layout = "~/Views/Shared/_Layout.cshtml";
}