Error with DropDownList when CKEditor is also in use on page [duplicate]
问题 This question already has answers here : The ViewData item that has the key 'XXX' is of type 'System.Int32' but must be of type 'IEnumerable<SelectListItem>' (6 answers) Closed 3 years ago . I have a dropdownlist that is working just fine, but when I have add a CKEditor (ckeditor-standard 4.5.7) to handel EditorFor helper I'm getting this error: The ViewData item that has the key 'OccupationId' is of type 'System.Int32' but must be of type 'IEnumerable'. Removing the CkEditor solve this error