title: jQuery Ajax failing to call to Controller Action Result when deployed to server
body: <p>In my MVC 4, the code below is not calling controller action when deployed to the server. but it is working on my local. </p>
  
  <p>I am using IE 7. 
  THANKS IN ADVANCE.</p>
  
  <p>js code:</p>
  
  <pre><code>    $("#button").click(function () {
      var uploadFile = document.getElementById("myFile").value;
      var fullPath = document.getElementById('myFile').value;
      var urlRegisterPartner = $('#registerurl').data('register-url'); 
  
      if (fullPath) {
          var startIndex = (fullPath.indexOf('\\') &gt;= 0 ? fullPath.lastIndexOf('\\') : fullPath.lastIndexOf('/'));
          var filename = fullPath.substring(startIndex);
          if (filename.indexOf('\\') === 0 || filename.indexOf('/') === 0) {
              filename = filename.substring(1);
          }
          $("#myModal").dialog("open");
  
          $.get(urlRegisterPartner, { uploadFile: uploadFile }, function (data) {
              alert(data.Messages);
              $("#myModal").dialog("close");
          });
      }
      else {
          alert('Please select file to upload');
      }
  });
  </code></pre>
  
  <p>actionresult:</p>
  
  <pre><code>[HttpGet]
      public JsonResult Upload(string uploadFile)
      {
          Message msg = new Message();
  
          string fileLocation = Server.MapPath("~/UploadedFile/") + Path.GetFileName(uploadFile);
          msg.Messages = uploadRepo.ReadFile(uploadFile, fileLocation);
  
          return Json(msg, JsonRequestBehavior.AllowGet);
      }
  </code></pre>