title: @Html.EnumDropDownListFor() Additional information: Return type 'System.Int32' is not supported
body: <p>@Html.EnumDropDownListFor() is throwing an error</p>
  <blockquote>
  <p>An exception of type 'System.ArgumentException' occurred in System.Web.Mvc.dll but was not handled in user code</p>
  <p>Additional information: Return type 'System.Int32' is not supported.&quot;</p>
  </blockquote>
  <p>Code from view</p>
  <pre><code>  &lt;div class=&quot;form-group&quot;&gt;
          &lt;div class=&quot;col-md-10&quot;&gt;
               @Html.Label(&quot;Importance Level&quot;)
               @Html.EnumDropDownListFor(model =&gt; model.NoticeCategory)
              &lt;span class=&quot;help-block&quot;&gt;...&lt;/span&gt;
           &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  <p>Code from enum class</p>
  <pre><code>namespace OfficiumWebApp.Models.Enums
  {
  public enum NoticeCategories : byte
  {
      [Display(Name= &quot;High&quot;)]
      Hige = 1,
  
      [Display(Name = &quot;Medium&quot;)]
      Medium = 2,
  
      [Display(Name = &quot;Low&quot;)]
      Low = 3
  }
  </code></pre>
  <p>I want the display names in the dropdown list so I'm not sure wht it's trying to return System.int32.</p>
  <p>Any ideas where the problem could lie?</p>
  <p>Thanks</p>
  <p>EDIT: Forgot to include my view model code</p>
  <pre><code>    [Display(Name = &quot;Notice Category&quot;)]
      public NoticeCategories? NoticeCategory  { get; set; }
  </code></pre>
  <p>EDIT 2: Stack trace</p>
  <pre><code> at System.Web.Mvc.Html.SelectExtensions.EnumDropDownListFor[TModel,TEnum](HtmlHelper`1 htmlHelper, Expression`1 expression, String optionLabel, IDictionary`2 htmlAttributes)
     at System.Web.Mvc.Html.SelectExtensions.EnumDropDownListFor[TModel,TEnum](HtmlHelper`1 htmlHelper, Expression`1 expression, String optionLabel)
     at System.Web.Mvc.Html.SelectExtensions.EnumDropDownListFor[TModel,TEnum](HtmlHelper`1 htmlHelper, Expression`1 expression)
     at ASP._Page_Views_NoticeBoard_Create_cshtml.Execute() in .......................................................
     at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
     at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
     at System.Web.WebPages.StartPage.RunPage()
     at System.Web.WebPages.StartPage.ExecutePageHierarchy()
     at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
     at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
     at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
     at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
     at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
     at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
     at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
  </code></pre>