title: Ajax File Upload Not firing the OnUploadComplete on the Webserver
body: <p>Ajax File Upload works fine at the localhost level, but when I build it to the Development web server, the <code>OnUploadComplete</code> doesn't fire.</p>
  
  <p><strong>The .aspx page:</strong></p>
  
  <pre><code>&lt;body&gt;
  &lt;form id="form1" runat="server"&gt;
  &lt;div&gt;
      &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
      &lt;/asp:ScriptManager&gt;
      &lt;cc1:AjaxFileUpload ID="AjaxFileUpload1" runat="server" 
          onuploadcomplete="AjaxFileUpload1_UploadComplete" /&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p><strong>The codebehind file:</strong></p>
  
  <pre><code>public partial class Ajaxtest : System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
  
      }
  
      protected void AjaxFileUpload1_UploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
      {
          string filePath = string.Empty;
          try
          {
              filePath = (Server.MapPath("~/Images/") + Guid.NewGuid() + System.IO.Path.GetFileName(e.FileName));
              AjaxFileUpload1.SaveAs(filePath);
              e.DeleteTemporaryData();
  
          }
          catch (Exception ex)
          {
              Response.Write(ex.Message.ToString());
          }
      }
  }
  </code></pre>
  
  <p><strong>web config :</strong></p>
  
  <pre><code>&lt;system.web&gt;
     &lt;httpHandlers&gt;
     &lt;add verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit" /&gt;
     &lt;/httpHandlers&gt;
        &lt;/system.web&gt;
  &lt;system.webServer&gt;
    &lt;validation validateIntegratedModeConfiguration="false"/&gt;
    &lt;handlers&gt;
    &lt;add name="AjaxFileUploadHandler" verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit"/&gt;
    &lt;/handlers&gt;
    &lt;/system.webServer&gt;
  </code></pre>