This is really confusing but almost for no reason my once working WCF service is forcing me to decorate two classes with the DataContract attribute even though I am not passing them back as a return value in a method or asp.net as one of the parameters to the method.
In short they do not need to be serialized. The only reason I can see is that they are objects stored as member variables within a class that has been decorated with the [DataContract] attribute? They are new objects within the object that im passing back to my WCF methods...
Anyone know why this would suddenly happen?
WCF supports POCO from .net 3.5
But if you want to go the POCO way then NONE of the classes directly or indirectly exposed by your service must be decorated with the DataContract attribute.