Win XP(x86)操作系统上的二级属性绑定exception,但不是Win 7(x64)

我很难过。 我的c#AddressForm上有以下行

lkuCounty.DataBindings.Add("EditValue", Address, "County.CountyID", true);

这适用于64位Win7机箱但在Win XP 32位机器上我得到以下例外:

 Type: System.ArgumentException Message: Cannot bind to the property or column CountyID on the DataSource. Parameter name: dataMember 

我猜我错过了一些细微差别,真的很感激一些帮助。

这是我的类(没有构造函数),它们位于一个单独的项目中( myproject.Common

 public class County { public short? CountyID { get; set; } public string CountyName { get; set; } } public class Address { public int AddressID { get; set; } public string AddressLine1 { get; set; } public string AddressLine2 { get; set; } public string AddressLine3 { get; set; } public string City { get; set; } public string Zip { get; set; } public County County { get; set; } } 

检查拼写例如大/小写