Parameter serialization error
Hello,
I have a parameter in my custom activity which is IPAddress type declared as following:
[Description("IP address")]
[Category("Net")]
[ValidationOption(ValidationOption.Required)]
[MergableProperty(false)]
[TypeConverter(typeof(IpAddressConverter))]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public IPAddress IpAddress
{
get
{
return (IPAddress)(base.GetValue(PortCheckerActivity.IpAddressProperty));
}
set
{
base.SetValue(PortCheckerActivity.IpAddressProperty, value);
}
}
public static DependencyProperty IpAddressProperty = DependencyProperty.Register(
"IpAddress",
typeof(IPAddress),
typeof(PortCheckerActivity),
new PropertyMetadata(IPAddress.Parse("127.0.0.1"), new Attribute[] {
new ValidationOptionAttribute(ValidationOption.Required) }));
when I add the activity to the workflow code based I don't have any problems. When I add the same activity to the workflow xoml based I get an error message: "Cannot serialize property 'ScopeId'. Could not get value for property 'ScopeId' of type 'System.Net.IPAddress'"
Do I miss something ?
Thanks,
Pierre

