title: Insufficient stack to continue executing the program safely
body: <p>I'm trying to make a menu with asp .net mvc 4.</p>
  
  <p>Calling menu</p>
  
  <pre><code>@{Html.RenderAction("LeftMenu", "Navigation",
                        new { currentPoint = ViewData["CurrentCategory"] });}
  </code></pre>
  
  <p>Navigation controller:</p>
  
  <pre><code>public ViewResult LeftMenu(string currentPoint) {
  
          List&lt;NavLink&gt; navLinks = new List&lt;NavLink&gt;();
          navLinks.Add(new CategoryLink(null)
          {
              IsSelected = (currentPoint == null)
          });
  
          List&lt;string&gt; categories = new List&lt;string&gt;{
              "Bicycles",
              "Details"
          };
  
          foreach (var category in categories)
              navLinks.Add(new CategoryLink(category){
                  IsSelected = (category == currentPoint)
              });
  
          return View(navLinks);
      }
  </code></pre>
  
  <p>Partial View</p>
  
  <pre><code>@model IEnumerable&lt;MvcWebShopApp.Controllers.NavigationController.NavLink&gt;
  &lt;ul class="nav navbar-nav"&gt;
      @foreach (var link in Model)
      {
          &lt;li class = "@(link.IsSelected ? "active": "")"&gt;
              &lt;a href="@Url.RouteUrl(link.RouteValues)")&gt;@link.Text&lt;/a&gt;
          &lt;/li&gt;
      }
  &lt;/ul&gt;
  </code></pre>
  
  <p>But when I run my project I got Exception:</p>
  
  <blockquote>
    <p>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 stack space.</p>
  </blockquote>
  
  <p>Please help.</p>