title: WFC + javascript MaxStringContentLength problem
body: <p>I am accessing a WCF service using a JavaScript code</p>
  
  <pre><code>&lt;asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"&gt;
      &lt;Services&gt;
          &lt;asp:ServiceReference Path="ForumService.svc" /&gt;
      &lt;/Services&gt;
  &lt;/asp:ScriptManager&gt;
  </code></pre>
  
  <p>in web.config </p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;diagnostics&gt;
        &lt;messageLogging logMalformedMessages="true" logMessagesAtTransportLevel="true" /&gt;
      &lt;/diagnostics&gt;
      &lt;serviceHostingEnvironment /&gt;
      &lt;bindings&gt;
        &lt;wsHttpBinding&gt;
          &lt;binding name="WSHttpBinding_ITranscriptService" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"&gt;
            &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/&gt;
            &lt;reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/&gt;
            &lt;security mode="Message"&gt;
              &lt;transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/&gt;
              &lt;message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true"/&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/wsHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address="http://localhost:10780/TranscriptService.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ITranscriptService" contract="TVServiceReference.ITranscriptService" name="WSHttpBinding_ITranscriptService"&gt;
          &lt;identity&gt;
            &lt;dns value="localhost"/&gt;
          &lt;/identity&gt;
        &lt;/endpoint&gt;
      &lt;/client&gt;
      &lt;behaviors&gt;
        &lt;endpointBehaviors&gt;
          &lt;behavior  name="WebTV.ForumServiceAspNetAjaxBehavior"&gt;
            &lt;enableWebScript /&gt;
          &lt;/behavior&gt;
        &lt;/endpointBehaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="WebTV.TranscriptServiceBehavior" &gt;
            &lt;serviceMetadata httpGetEnabled="true"/&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="true"/&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;services&gt;
        &lt;service behaviorConfiguration="WebTV.TranscriptServiceBehavior"
          name="WebTV.TranscriptService"&gt;
          &lt;endpoint address="" binding="wsHttpBinding" contract="WebTV.ITranscriptService"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost" /&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
          &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
        &lt;/service&gt;
        &lt;service behaviorConfiguration="WebTV.TranscriptServiceBehavior" name="WebTV.ForumService"&gt;
          &lt;endpoint address="" behaviorConfiguration="WebTV.ForumServiceAspNetAjaxBehavior"
            binding="webHttpBinding"    contract="WebTV.ForumService" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>now the problem is when i pass a large chunk of string value, i am getting an exception</p>
  
  <p>The InnerException message was 'There was an error deserializing the object of type System.String. The maximum string content length quota (8192) has been exceeded while reading XML data. </p>
  
  <p>How do i set MaxStringContentLength value for this using JavaScript ?</p>
  
  <p>Any advice ?</p>
  
  <p>Thanks
  -Aruna</p>