Validation application block - parameter validation failed

Topics: Web Client Software Factory
Jan 30, 2008 at 6:52 PM
Why do I get a generic alert box - " parameter validation failed, parameter name ..." error instead of the error message on the page? I am using WCSF and Castle ActiveRecord in my applications

my code snippets below:

In the Castle ActiveRecord data mapping class

ActiveRecord("users", Lazy=true)
public partial class Users : ActiveRecordBase {


StringLengthValidator(1, 50, MessageTemplate = "Name must be between {3}-{5} characters.")
Property("name", ColumnType = "String")
public virtual string Name {
get {
return this._name;
set {
this._name = value;


In the service interface class
string onRegistrationRequest(Users users);

And in the View

<asp:TextBox ID="txtboxName" runat="server" Width="200px"></asp:TextBox>
<cc1:PropertyProxyValidator ID="PropertyProxyValidator1" runat="server" DisplayMode="SingleParagraph" ControlToValidate="txtboxName" PropertyName="Name" SourceTypeName="Models.Users"></cc1:PropertyProxyValidator>