The first stage of processing an exception of type "System.ServiceModel.CommunicationException" in the application System.ServiceModel.dll The first stage of processing an exception of type "System.ServiceModel.CommunicationException" in the application System.ServiceModel.dll "Server.vshost.exe" (Managed (v4.0.30319)): Uploaded Stream <Anonymous> '(0xd3c) has exited with code 0 (0x0). The first stage of processing an exception of type "System.ServiceModel.CommunicationException" in the application System.Runtime.DurableInstancing.dll The first stage of processing an exception of type "System.ServiceModel.CommunicationException" in the application System.Runtime.DurableInstancing.dll
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple, UseSynchronizationContext = false)] public class ChatService : IChat { Dictionary<Client, IChatCallback> clients = new Dictionary<Client, IChatCallback>(); List<Client> clientList = new List<Client>(); public IChatCallback CurrentCallback { get { return OperationContext.Current.GetCallbackChannel<IChatCallback>(); } } object syncObj = new object(); public bool Connect(Client client) { if (SearchClientsByName(client.Name) && !clients.ContainsValue(CurrentCallback)) { OperationContext.Current.Channel.Faulted += new EventHandler(delegate{Console.WriteLine("User Error (faulted)" + client.Name);}); OperationContext.Current.Channel.Closed += new EventHandler(delegate { Console.WriteLine("User Error (closed)" + client.Name); }); /* bla bla bla */ } /* bla bla bla */
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)