0
votes

My domain service has invoke operation method and returns a custom type say 'User'. This class has many properties such as String, Integer, Boolean, XElement. When I rebuild the solution to generate client-side proxy, it generates code for the class User in the client for all the properties, except for XElement. What is the fix for this? Will RIA not generate any code for XNode or XElement types? Should these elements be converted to String? Are there any fixes for this error?

I'm using VS2010 SP1, .Net Framework 4, WCF RIA, Silverlight 5.

1

1 Answers

0
votes

According to the Silverlight DataContract documentation, you can mark your classes as either opt-in using the DataContract/DataMember attributes or opt-out and rely on only serializing public scope class members. You need to show the code of the class you're having problems with to get better suggestions.