[WCF] Limitation dans la taille des objets
Bonjour à tous.
Je viens de tomber sur une étrange exception avec WCF.
J'ai une application qui transporte un dataset ( hou pas bien :aie: ) d'un serveur à un client. Jusque la ça marche très bien, pas de problème. Le problème vient quand le client ajoute trop de données au dataset. En effet j'ai actuellement 180 lignes * 3 colonnes et d'autre petites tables. Bref rien de bien gros.
Or l'ajout d'un ensemble de lignes supplémentaires me fait planter le client aec cette magnifique exception que je me fait une joie de partager avec vous :mrgreen: :
Citation:
Envoyé par Le framwork qui m'en veut
System.ServiceModel.CommunicationException was unhandled
Message="Le quota de taille maximale de message pour les messages entrants a été dépassé pour le canal distant. Pour plus d’informations, consultez les journaux du serveur."
Source="mscorlib"
StackTrace:
Server stack trace:
à System.ServiceModel.Channels.ClientDuplexConnectionReader.DecodeMessage(Byte[] buffer, Int32& offset, Int32& size, Boolean& isAtEOF, TimeSpan timeout)
à System.ServiceModel.Channels.SessionConnectionReader.DecodeMessage(TimeSpan timeout)
à System.ServiceModel.Channels.SessionConnectionReader.Receive(TimeSpan timeout)
à System.ServiceModel.Channels.SynchronizedMessageSource.Receive(TimeSpan timeout)
à System.ServiceModel.Channels.FramingDuplexSessionChannel.Receive(TimeSpan timeout)
à System.ServiceModel.Channels.FramingDuplexSessionChannel.TryReceive(TimeSpan timeout, Message& message)
à System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, 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)
Exception rethrown at [0]:
à System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
à System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
à AIDServiceLibrary.IAIDService.UpdateServerData(DataSet dataSet)
à ActiveIngredientDatabase.Remote.RemoteConnection.SaveDatas(DataSet datas) dans C:\Users\vincent.laine\Documents\Visual Studio 2005\Projects\BdMolecules\trunk\ActiveIngredientDatabase\ActiveIngredientDatabase\Remote\RemoteConnection.cs:ligne 89
à ActiveIngredientDatabase.Remote.ThreadedConnectionManager.ConnectionManager.SaveData(Object datas) dans C:\Users\vincent.laine\Documents\Visual Studio 2005\Projects\BdMolecules\trunk\ActiveIngredientDatabase\ActiveIngredientDatabase\Remote\ThreadedConnectionManager.cs:ligne 342
à System.Threading.ThreadHelper.ThreadStart_Context(Object state)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Threading.ThreadHelper.ThreadStart(Object obj)
Et j'ai absolument rien dans les logs serveurs :roll: qui d'ailleurs continue a fonctionner sans problème ...
Bref j'ai regardé partout et je vois pas comment augmenter la limite de taille pour les objets ... J'espère que j'ai laissé passer quelque chose :?
Si vous avez des idées, des suggestions ou autres ... elles sont les bienvenues ;)
:merci: