471,310 Members | 990 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

OptionalFieldAttribute is not working in SoapFormatter


I have problem in using OptionalFieldAttribute when I serialized a
class Srl using SoapFormatter. I am currently using .NET Framework 2.0

I have done something like this:
public class Srl
public str1 = "";

public string str2= "";

I get this error "Wrong number of Members. Object Srl has 2 members,
number of members deserialized is 1."

I am hoping is anyone can solve this problem for me. Thank you very

Feb 15 '06 #1
0 1080

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Jarda | last post: by
reply views Thread by seckley | last post: by
reply views Thread by GrandpaB | last post: by
5 posts views Thread by =?Utf-8?B?TWFydHluIEZld3RyZWxs?= | last post: by
reply views Thread by cmdolcet69 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.