I am trying to use the validation error message from resource file and not able to make it work.
I am using only configuration file (Not the attributes) to validate the object. I have resource file created and there is an entry in that. Here is my config for the property to validate.
I am using VAB in WCF service. I am trying to validate the request object in service call and returning the error of validation in the response of the service call.
Now I want to return a error message from service and the message should be in the users language in the parameter.
I am setting culture in the service exposed method using
System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR");
I have my resourec filed named as
But the resource string return from the validation result is always english. Whats could be the posssible error? Thanks for your help.