1

I generated entity classes with spmetal using the serialization parameter (set to "unidirectional"). However, when I use those classes as return value for a WCF method, I get the following error:

System.ServiceModel.CommunicationException was unhandled by user code
Message=The server did not provide a meaningful reply; 
this might be caused by a contract mismatch, 
a premature session shutdown or an internal server error.

Using my own classes works flawless. The code that SPMetal created can be viewed here: http://pastebin.com/kjEvUAgS

Does anybody know if SPMetal and WCF play together nicely?

binford
  • 1,655
  • 1
  • 18
  • 36

0 Answers0