I have just downloaded the latest version and used VS Publish wizard to deploy. I tried different options e.g. release, debug any CPU, x86 only, precompiled and not precompile etc.


In the admin-> category management I cannot create a category not error or information.

Also cannot update the category created by the initial SQL but this time I get below error,


There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'ParentCategory'.

[InvalidOperationException: There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'ParentCategory'.]
   System.Web.Mvc.Html.SelectExtensions.GetSelectData(HtmlHelper htmlHelper, String name) +204
   System.Web.Mvc.Html.SelectExtensions.SelectInternal(HtmlHelper htmlHelper, ModelMetadata metadata, String optionLabel, String name, IEnumerable`1 selectList, Boolean allowMultiple, IDictionary`2 htmlAttributes) +118
   System.Web.Mvc.Html.SelectExtensions.DropDownListFor(HtmlHelper`1 htmlHelper, Expression`1 expression, IEnumerable`1 selectList, String optionLabel, IDictionary`2 htmlAttributes) +94
   ASP._Page_Areas_Admin_Views_AdminCategory__CategoryFields_cshtml.Execute() +8201
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198

Only thing I can think of is my hosting is not supporting this version of the framework or view engine or something like this.


Can you please help me out to make this work.