Salut les gens!
J'ai un petit soucis avec mon service WCF.
J'ai placé le service WCF sur un serveur. Avec le pc client, j'arrive à y accéder avec Internet Explorer, par contre quand je l'utilise dans mon application client, j'ai une erreur qui dit "L'appelant n'a pas été authentifié par le service"
Voici le fichier config de mon appli :
Je pense que c'est ici qu'il y a l'erreur !
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58 <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.diagnostics> <sources> <!-- Cette section définit la configuration de l'enregistrement dans le fichier journal de My.Application.Log --> <source name="DefaultSource" switchName="DefaultSwitch"> <listeners> <add name="FileLog"/> <!-- Supprimez les marques de commentaire dans la section suivante pour écrire dans le journal des événements de l'application --> <!--<add name="EventLog"/>--> </listeners> </source> </sources> <switches> <add name="DefaultSwitch" value="Information" /> </switches> <sharedListeners> <add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter"/> <!-- Supprimez les marques de commentaire dans la section suivante et remplacez APPLICATION_NAME par le nom de votre application à inscrire dans le journal des événements de l'application --> <!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> --> </sharedListeners> </system.diagnostics> <system.serviceModel> <bindings> <wsHttpBinding> <binding name="myServiceEndPoint" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /> <security mode="Message"> <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /> <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true" /> </security> </binding> </wsHttpBinding> </bindings> <client> <endpoint address="http://212.XX.YY.ZZ/wcf_hello/myService.svc" binding="wsHttpBinding" bindingConfiguration="myServiceEndPoint" contract="myService.IMyService" name="myServiceEndPoint"> <identity> <userPrincipalName value="\\212.XX.YY.ZZ\ASPNET" /> </identity> </endpoint> </client> </system.serviceModel> </configuration>
QQ1 pour m'aider SVP? c'est tres urgent!
Merci
JUL
Partager