Hi
My goal is simply to show a language-specific errormessage for a Required-Annotation:
[Required(ErrorMessageResourceName = "LastNameRequired", ErrorMessageResourceType = typeof(ValidationMessage))]
LastNameRequired is the key of the string in the resourcefile, ValidationMessage is the type generated by the resource file. The resourcefile is in the same project and namespace.
I changed the Access Modifier of the resourcefile to public. Build Action is on Embedded Resource.
The actual behaviour is, that it doesn't show an errormessage, it even doesn't show an error for that attribute. If I remove the ErrorMessage*-Attribute from the Attribute, all works fine.
[Required]