title: JQuery uploadify not working with https in an asp.net MVC3 application throwing error 2038
body: <p>I build a new MVC3 application and used Uploadify plugin in it. It works great. Below is my code:</p>
  
  <pre><code> $("#fileuploader").fileUpload({
          'uploader': '@Url.Content("~/Scripts/Uploader.swf")',
          'buttonText': 'Browse',
          'cancelImg': '@Url.Content("~/Images/cancel.png")',
          'script': 'Home/Upload',
          'fileDesc': '*.jpg;*.jpeg;*.gif;*.png;*.eml;*.msg;*.doc;*.docx;*.pdf;*.txt;*.xps;*.zip;*.ppt;*.pptx;*.pages;*.numbers;*.url;*.xls;*.xlsx;',
          'fileExt': '*.jpg;*.jpeg;*.gif;*.png;*.eml;*.msg;*.doc;*.docx;*.pdf;*.txt;*.xps;*.zip;*.ppt;*.pptx;*.pages;*.numbers;*.url;*.xls;*.xlsx;',
          'multi': false,
          'auto': true,
          'sizeLimit': 102400,
          'onError': function (event, ID, fileObj, errorObj) {
              alert(errorObj.info);
              alert(errorObj.text);
              alert(errorObj.status);
              if (errorObj.type == "File Size") {
                  alert(errorObj.type + ' Limit: ' + Math.round(errorObj.sizeLimit / 1024) + 'KB');
              }
          }
      });
  </code></pre>
  
  <p>Here is the method use to upload the file.</p>
  
  <pre><code> public string Upload(HttpPostedFileBase fileData)
          {
              //var fileName = this.Server.MapPath("~/uploads/" + System.IO.Path.GetFileName(fileData.FileName));
              var fileName = "C:/temp/" + System.IO.Path.GetFileName(fileData.FileName);
              fileData.SaveAs(fileName);
  
              return "ok";
          }
  </code></pre>
  
  <p>However when I use the same code in another MVC3 application that is federated using ADFS and uses https it always throws Error 2038. Does anyone know why I am getting this error. I have checked each and every configuration settings. Is this a security issue? Any help regarding this will be highly appreciated. Thanks!</p>