Server Tracing

Can you enable tracing on the server (http://msdn2.microsoft.com/en-us/library/ms733025.aspx) to figure out which exception is being thrown at that location? That will help figuring out if the problem is due to a quota being exceeded.

WCF Contracts, Object Orientation and ServiceKnownType

I have a service that I want to return a list of Person objects but it doesn’t seem to be working when I pass Employees and Managers in the list.
You should annotate the contract with the ServiceKnownType attribute for each type that the Person could be.

Add known types on the base class (http://stackoverflow.com/questions/658361/wcf-serialization-with-object-inheritance).

Like http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/765816fb-3eba-4240-9d00-c5f306038734

Then you may get an error like: The deserializer has no knowledge of any type that maps to this contract. This could be because some idiot kept insisting on adding dummy attribute classes in Silverlight client. But thank God that didn’t take too much time to figure out.

Leave a Comment