Hallo aller seits
ich möchte ein Striung-Array an mein Client senden. Alle anderen Methoden die als Ruckgabewert mit Datentypen wie bool, string funktionieren anwendfrei.
Jetzt bricht die Kommunication ab und bekomme ich den folgende Exception
Ich bin für eure tipps und HILFE sehr dankbar
Server seite:
Client Seite
ich möchte ein Striung-Array an mein Client senden. Alle anderen Methoden die als Ruckgabewert mit Datentypen wie bool, string funktionieren anwendfrei.
Jetzt bricht die Kommunication ab und bekomme ich den folgende Exception
Das Kommunikationsobjekt "System.ServiceModel.Channels.ServiceChannel" kann nicht für die Kommunikation verwendet werden, da es abgebrochen wurde.
Server seite:
Code:
[ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IMyEvents))] public interface IMyContract { [OperationContract] String[] GetStatus(); }
Code:
class ServiceClient : DuplexClientBase<IMyContract>, IMyContract { public String[] GetStatus() { String[] fileContent; try { fileContent = base.Channel.GetStatusLog(); return fileContent; } catch (TimeoutException timeout) { // Handle the communication exception base.Abort(); Exc("CommunicationException"); } return fileContent; } }
Comment