I have a model with this property:
[AllowHtml] [DisplayName(\"Widget for Table\")] [StringLength(1000, ErrorMessage = \"Maximum chars 1000\")]
I get the same problem and i solve it with the help of this post.
If you are on .net 4.0 make sure you add this in your web.config
Inside the tags