title: maxRequestLength in web.config makes an internal error
body: <p>I want to allow my users to upload files  with huge size so I change my web.config to this:</p>
  <pre><code>     &lt;configuration&gt;
       &lt;configSections&gt;
        &lt;sectionGroup name=&quot;applicationSettings&quot;    type=&quot;System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0,    Culture=neutral, PublicKeyToken=&quot; &gt;
          &lt;section name=&quot;delegatezanjan.Properties.Settings&quot;    type=&quot;System.Configuration.ClientSettingsSection, System, Version=4.0.0.0,   Culture=neutral, PublicKeyToken=&quot; requirePermission=&quot;false&quot; /&gt;
        &lt;/sectionGroup&gt;
      &lt;/configSections&gt;
          &lt;system.web&gt;
        &lt;compilation debug=&quot;true&quot; targetFramework=&quot;4.0&quot;&gt;
           &lt;assemblies&gt;
            &lt;add assembly=&quot;System.Design, Version=4.0.0.0, Culture=neutral,   PublicKeyToken=&quot;/&gt;
          &lt;/assemblies&gt;
          &lt;/compilation&gt;
         &lt;httpRuntime/&gt;
    &lt;httpRuntime maxRequestLength=&quot;200000&quot; executionTimeout=&quot;99999&quot;/&gt;
      &lt;/system.web&gt;
      &lt;system.serviceModel&gt;
        &lt;bindings&gt;
          &lt;basicHttpBinding&gt;
          &lt;binding name=&quot;smsSendWebServiceSoap&quot; /&gt;
        &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address=&quot;http://aryanmsg.ir/smsSendWebService.asmx&quot;
          binding=&quot;basicHttpBinding&quot; bindingConfiguration=&quot;smsSendWebServiceSoap&quot;
          contract=&quot;ServiceReference1.smsSendWebServiceSoap&quot; name=&quot;smsSendWebServiceSoap&quot; /&gt;
      &lt;/client&gt;
       &lt;/system.serviceModel&gt;
      &lt;applicationSettings&gt;
      &lt;delegatezanjan.Properties.Settings&gt;
        &lt;setting name=&quot;delegatezanjan_ir_smsline_webservice_SMS_WebServer_Service&quot;
          serializeAs=&quot;String&quot;&gt;
          &lt;value&gt;&lt;/value&gt;
        &lt;/setting&gt;
      &lt;/delegatezanjan.Properties.Settings&gt;
       &lt;/applicationSettings&gt;
       &lt;system.webServer&gt;
        &lt;security&gt;
        &lt;requestFiltering&gt;
          &lt;requestLimits maxAllowedContentLength=&quot;2147483648&quot; /&gt;
          &lt;/requestFiltering&gt;
        &lt;/security&gt;
      &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  <p>Before adding this part my code is worked, but after adding the the last 3 lines, my website returns a 500 internal server error:</p>
  <blockquote>
  <p>There is a problem with the resource you are looking for, and it cannot be displayed.</p>
  </blockquote>