title: Unable to cast the object type "System.Web.Mvc.HtmlHelper` 1 [System.Object] "to type" System.Web.Mvc.HtmlHelper "
body: <p>I'm using DevExpress controlls in my mvc asp.net project. Here is code of View:</p>
  
  <pre><code>&lt;div&gt;
      @Html.DevExpress().TextBox(settings =&gt;
      {
          settings.Name = "TextBox";
          settings.Width = 170;
          settings.Properties.DisplayFormatString = "[ 00 - 00 - 00 ]";
          settings.Text = "123456";
      }).GetHtml()
  &lt;/div&gt;
  </code></pre>
  
  <p>and here is error message:</p>
  
  <pre><code> Unable to cast the object type "System.Web.Mvc.HtmlHelper` 1 [System.Object]" to
   type "System.Web.Mvc.HtmlHelper"
  </code></pre>
  
  <p>I cant understand where my code is failing, because it's sample code from DevExpress demos.</p>