Bonjour,

J'ai un souci sur mon application Silverlight. J'ai un Service WCF côté Serveur qui plante quand je fais trop d'appels à ce service.

Il me retourne cette Exception :

{System.ServiceModel.CommunicationException: Le serveur distant a retourné une erreur*: NotFound. ---> System.Net.WebException: Le serveur distant a retourné une erreur*: NotFound. ---> System.Net.WebException: Le serveur distant a retourné une erreur*: NotFound.
à System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
à System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
à System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)
--- Fin de la trace de la pile d'exception interne ---
à System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
à System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
à System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
--- Fin de la trace de la pile d'exception interne ---
à System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
à System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
à System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
à PASEC.IHM.Data.Client.BLL.PASECProxyClient.PASECProxyClientChannel.EndGetVariables(IAsyncResult result)
à PASEC.IHM.Data.Client.BLL.PASECProxyClient.PASEC.IHM.Data.Client.BLL.IPASECProxy.EndGetVariables(IAsyncResult result)
à PASEC.IHM.Data.Client.BLL.PASECProxyClient.OnEndGetVariables(IAsyncResult result)
à System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)}
Voici mon Web.config:

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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<system.web>
    <compilation debug="true" targetFramework="4.0" />
    <httpRuntime maxRequestLength="999999999"/>
    <customErrors mode="Off"/>
  </system.web>
  <system.serviceModel>
 
    <client>
      <endpoint address="http://confemen-pasec.ciep.fr/Server.svc"
           binding="basicHttpBinding" bindingConfiguration="DefaultClient"
           contract="BLL.IPASECProxy" name="BasicHttpBinding_IPASECProxy" />
 
      <endpoint address="http://localhost:1352/Server.svc"
          binding="basicHttpBinding"  bindingConfiguration="DefaultClient"
          contract="BLL.IPASECProxy" name="BasicHttpBinding_IPASECProxy_local" />
    </client>
 
    <bindings>
 
      <basicHttpBinding>
        <binding name="DefaultClient" closeTimeout="24:00:00" openTimeout="24:00:00"
          receiveTimeout="24:00:00" sendTimeout="24:00:00" allowCookies="false"
          bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
          maxBufferSize="1999999999" maxBufferPoolSize="1999999999" maxReceivedMessageSize="1999999999"
          messageEncoding="Text" textEncoding="utf-8" transferMode="Streamed"
          useDefaultWebProxy="true">
          <readerQuotas maxDepth="1999999999" maxStringContentLength="1999999999" maxArrayLength="1999999999"
            maxBytesPerRead="1999999999" maxNameTableCharCount="1999999999" />
          <security mode="None" />
 
        </binding>
      </basicHttpBinding>
      <customBinding>
        <binding name="NewBinding0" closeTimeout="24:00:00" openTimeout="24:00:00"
          receiveTimeout="24:00:00" sendTimeout="24:00:00" >
          <textMessageEncoding messageVersion="Soap11WSAddressing10"
            writeEncoding="utf-8">
            <readerQuotas maxDepth="1999999999" maxStringContentLength="1999999999" maxArrayLength="1999999999"
              maxBytesPerRead="1999999999" maxNameTableCharCount="1999999999" />
          </textMessageEncoding>
          <httpTransport allowCookies="true" keepAliveEnabled="true" transferMode="StreamedRequest" />
        </binding>
      </customBinding>
    </bindings>
    <services>
      <service name="PASEC.Data.Server.PASECProxy">
        <endpoint address="" binding="basicHttpBinding"  bindingConfiguration="DefaultClient"  contract="PASEC.Data.Server.IPASECProxy" />
        <!--<identity>
            <dns value="localhost" />
          </identity>-->
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
    </services>
 
    <behaviors>
      <serviceBehaviors>
        <behavior name="">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
        <behavior name="ReportServiceBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <behavior name="WebBehavior">
          <webHttp />
        </behavior>
      </endpointBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
  </system.serviceModel>
Et voici mon ServiceReference.ClientConfig :


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
<configuration>
 
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IReportService" maxBufferSize="2147483647"
            maxReceivedMessageSize="2147483647">
          <security mode="None" />
        </binding>
        <binding name="BasicHttpBinding_IPASECProxy" maxBufferSize="2147483647"
            maxReceivedMessageSize="2147483647">
          <security mode="None" />
        </binding>
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://confemen-pasec.ciep.fr/Server.svc" binding="basicHttpBinding"
          bindingConfiguration="BasicHttpBinding_IPASECProxy" contract="BLL.IPASECProxy"
          name="BasicHttpBinding_IPASECProxy" />
    </client>
  </system.serviceModel>
</configuration>
Quelqu'un s'aurait-il d'où peut venir le problème ?

Je vous remercie pour votre attention

Julien,