title: System.Web.Mvc.HtmlHelper<ModelName> does not contain a definition for
body: <p>I am trying to use <a href="http://blog.stevensanderson.com/2010/01/28/editing-a-variable-length-list-aspnet-mvc-2-style/" rel="noreferrer">Steve Sanderson's blog post</a> about editing a variable length list. I've installed the dll via the NuGet package manager and made sure that the namespace is in the <code>Views/web.config</code> file. However, I the following error when I attempt to write the <code>using</code> statment. </p>
  
  <pre><code>System.Web.Mvc.HtmlHelper&lt;Monet.Models.AgentTransmission&gt; does not contain a definition 
  for 'BeginCollectionItem' and no extension method 'BeginCollectionItem' accepting a first 
  argument of type 'System.Web.Mvc.HtmlHelper&lt;Monet.Models.AgentTransmission&gt;' could be 
  found (are you missing a using directive or an assmebly reference
  </code></pre>
  
  <p><strong>Views/Web.config</strong></p>
  
  <pre><code>    &lt;namespaces&gt;
        &lt;add namespace="System.Web.Mvc" /&gt;
        &lt;add namespace="System.Web.Mvc.Ajax" /&gt;
        &lt;add namespace="System.Web.Mvc.Html" /&gt;
        &lt;add namespace="System.Web.Routing" /&gt;
        &lt;add namespace="HtmlHelpers.BeginCollectionItem" /&gt;
      &lt;/namespaces&gt;
  </code></pre>
  
  <p><strong>Partial View (updated)</strong></p>
  
  <pre><code>@model Monet.Models.AgentRelationshipCodes
  
  @using (Html.BeginCollectionItem("AgentRelationshipCodes"))
  {
      &lt;tr&gt;
          &lt;td&gt;@Html.EditorFor(model =&gt; model.EffectiveDate, "NullableDate", new { @class = "relCodeDate2" })&lt;/td&gt;
          &lt;td&gt;@Html.EditorFor(model =&gt; model.RelationshipId, "NullableDate", new { @class = "relDistCode1", maxlength = 3 })&lt;/td&gt;
          @Html.HiddenFor(model =&gt; model.ID)
          @Html.HiddenFor(model =&gt; model.RelCodeOrdinal)
      &lt;/tr&gt;
  }
  </code></pre>
  
  <p><strong>Controller (just in case)</strong></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Configuration;
  using System.Data;
  using System.Data.Entity.Validation;
  using System.Diagnostics;
  using System.IO;
  using System.Linq;
  using System.Net;
  using System.Reflection;
  using System.Runtime.Serialization;
  using System.Text;
  using System.Transactions;
  using System.Web;
  using System.Web.Mvc;
  using System.Web.Routing;
  using System.Xml;
  using Monet.MonetToDss;
  using Monet.Common;
  using Monet.Models;
  using Monet.ViewModel;
  using HtmlHelpers.BeginCollectionItem;
  
  public ViewResult NewRelationshipCode()
  {
      return View("AddRelationshipCodePartial", new AgentRelationshipCodes());
  }
  </code></pre>