Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I migrate our application into a WCF application. I've added a login screen and I create the channel for each user Calback:

client:

_ChannelFactory = New DuplexChannelFactory(Of IService)(interface_de_rappel,New EndpointAddres, New EndpointAddress(Config.AdresseServeur))
 _Clt = CType(_ChannelFactory.CreateChannel, OCServeur.IService)


server:

_Callback = OperationContext.Current.GetCallbackChannel(Of IRappel)()


when users do not connect at the same time, all is well! but if they connect at the same time t (a roughly), one or two users come n not connect and it displays the following bug:

The object of communication System.ServiceModel.Channels.ServiceChannel can not be used for communication because it has been canceled.

Server stack trace: 
  à System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()
  à System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
  à System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
  à System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
  à System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
  à System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)


[edit]Subject changed to reflect language now English - OriginalGriff[/edit]
Posted
Updated 4-Aug-10 22:32pm
v5
Comments
#realJSOP 4-Aug-10 8:22am    
Repost this in english.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900