c# - Serialization Issue with WF4 -



c# - Serialization Issue with WF4 -

i have peculiar issue variable in workflow service. array of datacontract rest service, contactcontract[]. when array empty great , workflow continues on correctly. however, if there items in array stack overflow occurs outside of activities, can't pinpoint specific spot unfortunately.

so, having seen before datacontractserializer when cycles exist in object graph wrote unit test seek out. test fails next exception:

system.xaml.xamlobjectreaderexception: unable serialize type 'system.runtime.serialization.extensiondataobject'. verify type public , either has default constructor or instance descriptor.

and test:

[testmethod] public void contactarrayserialize() { var ser = new datacontractserializer(typeof(contactcontract[])); var reader = new stringreader(strings.serialized_contact_list); var xmlreader = xmlreader.create(reader); var list = ser.readobject(xmlreader) contactcontract[]; var str = xamlservices.save(list); }

(i add together xml contact list it's huge)

i gather because contract implements iextensibledataobject back upwards versioning bit better.

this not stack overflow had anticipated, bet related.

has encountered either of these issues or have advice?

ok sense idiot now. turns out wasn’t workflow crashing wcftestclient b/c couldn’t figure out how display contact contract.

c# workflow-foundation-4 datacontract xaml-serialization

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -