Hi,
So far I could return my objects from my service to the client with no
issues. Then I've introduced inheritance in my objects and I'm getting
the following exception on the client side:
The underlying connection was closed: The connection was closed
unexpectedly.
So before inheritance I was trying to return object of type Post which
looked like this :
public class Post
{
Publication thePublication;
}
public class Publication
{
string title;
string url;
}
It's very simplified of course but I just want to make it clear what
the object graph looked like. Now if I introduced inhertance in the
Publication class :
public class Post
{
Publication thePublication;
}
public abstract class Publication
{
string title;
}
public class OnlinePublication : Publication
{
string online;
}
Now I get the exception mentioned above when I try to return a Post
object....
Does someone know what I can do ?