Je rencontre des problèmes avec un service WCS WsHttpBinding que je souhaite modifier en NetTcpBinding. Auparavant, j'ai installé le service dans ma machine locale IIS7 et cela fonctionne avec le WsHttpBinding.Modification de la liaison WCF de wsHttp à netTcp
Le proxy pour ce service a un CustomBehavior qui ajoute deux têtes de message avant d'envoyer le message de demande
Lorsque je change la liaison à un NetTcpBinding je reçois l'exception suivante dans mes journaux ..
Exception: System.ServiceModel.ServiceActivationException: Service /ConsignmentService/Consignment.svc cannot be activated due to an exception during compilation. The exception message is: Exception has been thrown by the target of an invocation ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ServiceModel.MessageHeaderException: There is not a header with the name "ClientID" og namespace 'http://AmphoraExtension/Header' in the message.
ved System.ServiceModel.Channels.MessageHeaders.GetHeader[T](String name, String ns, XmlObjectSerializer serializer)
ved System.ServiceModel.Channels.MessageHeaders.GetHeader[T](String name, String ns)
Cela fonctionne très bien avec le wsHttpBinding, mais pas avec NetTcpBinding. Qu'est-ce qui me manque ici?