Answer the question
In order to leave comments, you need to log in
What is the error when using wrapper class for WCF?
Dear experts, a big request to prompt with the following questions:
There is a class "wrapper" for the results returned by WCF
public class ClassResultInfo
{
[DataMember(Name = "Статус")]
public bool Status { get; set; }
[DataMember(Name = "Тип_Результата")]
public Type TypeResult{ get; set; }
[DataMember(Name = "Результат")]
public object Result { get; set; }
[DataMember(Name = "Ошибка")]
public string Error { get; set; }
public ClassResultInfo()
{
}
public ClassResultInfo(bool status, string error)
{
Status = status;
TypeResult = null;
Result = null;
Error = error;
}
public ClassResultInfo(bool status, Type typeResult, object result)
{
Status = status;
TypeResult = typeResult;
Result = result;
Error = string.Empty;
}
public ClassResultInfo(bool status, string error, Type typeResult, object result )
{
Status = status;
TypeResult = typeResult;
Result = result;
Error = error;
}
}
public interface IAisaServer
{
[OperationContract(Name = "Мониторинг")]
ClassResultInfo MonitoringServiceList(User user, bool isActive);
}
System.ServiceModel.CommunicationException: "The socket connection was aborted. This could be caused by a message processing error, a timeout on the remote host, or a network resource allocation issue. Local socket timed out: '00:00:59.9659980'."
Answer the question
In order to leave comments, you need to log in
Serialization is not to blame here.
The text of the message clearly states: The WCF client failed to connect to the WCF server in 1 minute.
PS And why did you paint over the screenshot? There is just the most interesting information.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question