Question

Possible Duplicate:
Why isn’t my DbNull a singleton when I deserialise it using XmlSerialiser?

I have an object array that I am passing to a WCF call that has DBNull.Value as one of the values. WCF is apparently choking on it because it doesn't know how to serialize it.

Googling it only shows people who replaced the DBNull.Value with something else. Do I have to do that, or is there a way for me to have DBNull.Value on the client be serialized to the same thing on the server?

Was it helpful?

Solution

See this previous post.

Why isn't my DbNull a singleton when I deserialise it using XmlSerialiser?.

Also, as an aside, DBNull probably shouldn't be floating around in your service layer, although there is always a reason sometimes :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top