My application contains several class libraries and one windows form application which is the UI and where app.config is. One of the class libraries is called BusinessLogic
where I have created a resource file (ErrorMessages.resx) to store all error messages.
I am using Validation Application Block and as Microsoft suggests I want all validations to stay at app.config file. The problem is I am not able to display messages from the resource file(which is at BusnessLogic dll) using MessageTemplateResourceType
(from within app.config).
see below, my app.config,
Microsoft.Practices.EnterpriseLibrary.Validation, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
upperBound="30" lowerBound="3" messageTemplate=""messageTemplateResourceName="StringLengthMsg"
BusinessLogic, Version=18.104.22.168, Culture=neutral, PublicKeyToken=null"
Length Validator" />
I would really appreciate if someone can help, and also suggest whether the mechanism I am using is correct or not.
Thanks in advance.