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

[1303 byte] By [pierreg] at [2007-12-18]
# 1

Thanks for letting us know Pierre. I have logged a bug to follow up with the issue.

- Vihang

vihang at 2007-9-8 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified