title: System.InsufficientExecutionStackException
body: <p>I have searched thoroughly this problem I am having (including this website) with no success. I would appreciate any help.</p>
  
  <p>I implemented some code from a previous MVC application to a newer application, which basically contains some views, controllers and models.</p>
  
  <p>In my .ascx view, I use the following code:</p>
  
  <pre><code>Html.RenderAction("FieldEdit", "DynamicForms", new { field = field, area = "Adendadora" });
  </code></pre>
  
  <p>This is where the exception appears: "Insufficient stack to continue executing the program safely. This can  happen from having too many functions on the call stack or function on the stack using too much disk space."</p>
  
  <p>And my action goes like this:</p>
  
  <pre><code>    public ActionResult FieldEdit(DynamicUI field)
      {
          if (field.FieldType == DynamicUITypes.Form)
          {
              return PartialView("DynamicGroupFields", field);                
          }
          else
          {
              return PartialView("DynamicField", field);
          }
      }
  </code></pre>
  
  <p>This View calls that method many times in order to create a dynamic form. The controller action is called via Ajax and the resulting HTML is injected somewhere else on the site.</p>
  
  <p>The thing is, the code remains untouched and it used to work, and now it doesn't. It calls the function successfully many times, until the exception appears.</p>
  
  <p>I'm suspect that it has to be that with this version of the application there is a slighty higher number of stack framecount than with the previous one.</p>
  
  <p>Any help is greatly appreciated, thank you very much.</p>