Bonjour,
Je créé un service WCF.
Voici mon fichier App.config qui pose problème :
J'ai ajouté l'élément <bindings> afin de spécifier mes propres timeouts mais :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <services> <service name="ServiceLibrary.service1"> <endpoint address="http://localhost:8000/MyRemoteWCF" binding="basicHttpBinding" contract="ServiceLibrary.IService1" /> </service> <bindings> <basicHttpBinding receiveTimeout="00:10:01" sendTimeout="00:10:01" /> </bindings> </services> </system.serviceModel> </configuration>
Pourtant c'est l'exemple utilisé par microsoft ici http://msdn.microsoft.com/fr-fr/library/ms733099.aspxException : Unrecognized element 'bindings' ..
Quel est le problème ?
Merci.
Partager