Silverlight 4 Polling Duplex - How to set the MaxReceivedMessageTimeout RRS feed

  • Question

  • I have a Silverlight 4 application that uses duplex polling to send information back to the client. I need to incease the default maxReceivedMessageSize of 65k to something a bit larger. I am confussed on how the config is layed out and if I need to create a customBinding element or not. Here is my config. Can someone show me where I set the max sizes and timeouts?

    Here is my config:

            <add name="pollingDuplex" type="System.ServiceModel.Configuration.PollingDuplexHttpBindingCollectionElement,
                 PublicKeyToken=31bf3856ad364e35" />
            <behavior name="">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true"  />
              <serviceThrottling maxConcurrentSessions="2147483647" maxConcurrentInstances="2147483647"   />
              <dataContractSerializer maxItemsInObjectGraph="2147483647" />
            <binding name="myPollingDuplex" duplexMode="SingleMessagePerPoll" maxReceivedMessageSize="2000000" >
              <!--<security mode="Transport" />-->
          <service name="UnityEca.Web.Services.SearchPollingService">
            <endpoint address="" binding="pollingDuplex" bindingConfiguration="myPollingDuplex" contract="UnityEca.Web.Services.SearchPollingService"  />
            <!--<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />-->
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />



    Wednesday, February 9, 2011 8:23 PM


  • Hi CashCache, try to add this under your <bindings><pollingDuplex><binding name> section... and remove the maxReceivedMessageSize from the <binding name> tag

    <httpTransport maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
                         maxBufferSize="2147483647" transferMode="StreamedResponse"  />

    use https if it's secured.  Mine is as this of course not using pollingDuplex

            <binding name="CustomBinding_ReproService">
                <binaryMessageEncoding />
                <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />

     Here's someone else using tcpTransport with a lot of content you can dig on :


    Thursday, February 10, 2011 6:21 AM