Validation.Validate not Validating

Topics: Validation Application Block
Sep 11, 2008 at 10:59 AM
I am using Ent Lib 4.0 with WSSF Modeling Edition VS 2008.
I am passing a null to a property which has the NotNullValidator on it
I also have tried passin a single letter with the StringLengthValidator(3,5) on it

No exception are being thrown.
I am placing a break point on the property set and it is breaking there, so I know the Validate method is reading it.
What am I doing wrong??

 Here is the Validation call 

       public GetDebtorBalanceMsgResponse GetDebtorBalance(GetDebtorBalanceMsgRequest request)
                //AccountsReceivable is declare as a class variable
                return accountsReceivable.GetDebtorBalance(request);
            catch (Exception ex)
                throw ex;


and here is the data class 

using WcfSerialization = global::System.Runtime.Serialization;
using Microsoft.Practices.EnterpriseLibrary.Validation;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;
namespace HiiP.BTM.Common.DataContracts
    [WcfSerialization::DataContract(Namespace = "urn:HiiP.BTM/Types/1.0.0", Name = "MessageUser")]
    public partial class MessageUser
        private System.String userID;
        private System.String userGroup;

        [WcfSerialization::DataMember(Name = "UserID", IsRequired = true, Order = 0)]
        public System.String UserID
            get { return userID; }
            set { userID = value;  }