Salut
Je lance mon service WCF dans une application console
et voici le fichier config que j ai mis pour l application console :
Pourtant il me dit qu il n y a pas de Endpoints ?!?!
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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <services> <service name="ServiceWCFStreamed.StreamingService"> <host> <baseAddresses> <add baseAddress="http://localhost:8000/Design_Time_Addresses/ServiceWCFStreamed/StreamService/"/> </baseAddresses> </host> <endpoint contract="ServiceWCFStreamed.IStreamService" binding="netTcpBinding" address="net.tcp://localhost:8000/BehaviorService" /> <!-- the mex endpoint is exposed at <a href="http://localhost:8000/ServiceModelSamples/service/mex" target="_blank">http://localhost:8000/ServiceModelSamples/service/mex</a> --> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> </service> </services> <bindings> <netTcpBinding> <binding transferMode="Streamed"/> </netTcpBinding> </bindings> <!--For debugging purposes set the includeExceptionDetailInFaults attribute to true--> <behaviors> <serviceBehaviors> <behavior> <serviceMetadata httpGetEnabled="True"/> <serviceDebug includeExceptionDetailInFaults="False"/> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel> </configuration>
Partager