title: Large File uploading Error in AjaxFileUpload
body: <p>I am trying to develop an upload functionality for my website. I am using Ajax Fileupload control for the upload. I have a server event attached for the on uploadcomplete event of the Ajax Fileupload control.</p>
  
  <pre><code>&lt;asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server" Width="350px" onuploadcomplete="AjaxFileUpload1_UploadComplete" /&gt;
  </code></pre>
  
  <p>Following is code of <code>onuploadcomplete</code></p>
  
  <pre><code>protected void AjaxFileUpload1_UploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
      {
          try
          {
  
              string fileNameWithPath = Server.MapPath("./files/") + e.FileName.ToString();
              AjaxFileUpload1.SaveAs(fileNameWithPath);
  
          }
          catch (Exception ex)
          {
          }
  
      }
  </code></pre>
  
  <p>I also  Add <code>maxRequestLength</code> in <code>httpRuntime</code> like This:</p>
  
  <pre><code>&lt;httpRuntime  maxRequestLength="42949672"/&gt;
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>&lt;security&gt;
      &lt;requestFiltering&gt;
          &lt;requestLimits maxAllowedContentLength="42949672"/&gt;
      &lt;/requestFiltering&gt;
  &lt;/security&gt;
  </code></pre>
  
  <p>It Work Properly on Local Host ,but Not work on live site......
  at live site it says Uploading Error</p>