I want to return an array of exceptions in the DataContract from the WCF but it is not working.
[DataContract]
public class ProcessResult
{
[DataMember]
public ProcessStatus EndStatus { get; set; }
[DataMember]
public Exception[] CaughtExceptionList { get; set; }
[DataMember]
public string CowListXML { get; set; }
}
When i make the WCF call i get this exception
The underlying connection was closed: The connection was closed unexpectedly.
I commented out/ignored the exception list as a data-member and i was able to get results back perfectly.
Thanks!
I believe the ExceptionDetail class is what you are looking for.