Invalid source type for validation provider

Topics: Validation Application Block
Jul 25, 2007 at 11:11 AM
I am using the Validation Block in the Smart Client Software Factory. I am getting the following exception:

"The source type does not represent a valid type for validation provider."

The validation is done on a text box in a smartpart shown in a window workspace. The exception is thrown in the following method of the window workspace:

protected override void OnShow(Control smartPart, Microsoft.Practices.CompositeUI.WinForms.WindowSmartPartInfo smartPartInfo)
OnApplySmartPartInfo(smartPart, smartPartInfo);
>> base.OnShow(smartPart, smartPartInfo);

The definition of the business object is:

public class Customer2

private string _fullName;

1, 50, MessageTemplate="{0} is verplicht en mag maximaal 50 tekens lang zijn",
public string FullName
get { return _fullName; }
set { _fullName = value; }

I can not figure out what is wrong here.
Jul 25, 2007 at 2:24 PM

This error message means that the type configured for the ValidationProvider component is not valid. In this case, the type should be the assembly qualified name for Customer2.