views:

1250

answers:

2

Hi,

I have a service that returns a collection of MyClass objects. If all of the MyClass instances have null in MyClass2Reference then everything works fine. Otherwise, I get a "Connection reset" error on the client side. What am I doing wrong?

Nevrmind: was a problem with NHibernate lazy proxy objects.

[DataContract]
public MyClass
{
[DataMember]
int ID;
[DataMember]
MyClass2 MyClass2Reference;
}

[DataContract]
public MyClass2
{
[DataMember]
int ID;
[DataMember]
string Name;
}
A: 

I think adding some tracing to your WCF config and then running the results through Service Trace Viewer as described here

would have given a good error description. I've found that is always a good place to start when dealing with strange WCF errors.

WillH
A: 

Solved

Meidan Alon