I've a page that uses the CreditCardValidator that is in the CommerceBuilder.Web assembly. I register it like this:
Code: Select all
<%@ Register Assembly="CommerceBuilder.Web" Namespace="CommerceBuilder.Web.UI.WebControls" TagPrefix="cb" %>
Code: Select all
<cb:CreditCardValidator ID="CardNumberValidator" runat="server"
ControlToValidate="CardNumber" ErrorMessage="Please enter a valid card number."
Display="Dynamic" Text="*" ValidationGroup="CreditCard"></cb:CreditCardValidator>
protected global::CommerceBuilder.Web.UI.WebControls.CreditCardValidator CardNumberValidator;
The problem is that when I build, I get the following error on the line in the designer.cs file:
Error 4 The type 'Sample.Web.UI.Compatibility.BaseValidator' is defined in an assembly that is not referenced. You must add a reference to assembly 'Validators, Version=1.0.0.0, Culture=neutral, PublicKeyToken=08d88f24895e085d'. C:\HighwayMediaPrototype\Orders\CreditCardForm.ascx.designer.cs 118 78 HighwayMediaPrototype
Further investigation reveals that ANYthing in the CommerceBuilder.Web assembly that uses Sample.Web.UI.Compatibility.BaseValidator as its base class causes this error. I played around with tagMapping in the web.config, but without any luck.
Any help is greatly appreciated.
Mark