title: Ajax function working when running locally but when deployed in IIS it is not working
body: <p>I have a ajax function like below in my MVC application</p>
  
  <pre><code> $.ajax({
           type: "GET",
           url: '/UpdateDetail/GetlocationAjax',
           data: { cityId: cityId },
           dataType: "json",
            success: function (result) {
            $.each(result, function (key, val) {
             workloc.append(
             $('&lt;option&gt;&lt;/option&gt;').val(val).html(key)
              );
            });
           },
           error: function (result) {
           }
           });
  </code></pre>
  
  <p>This work perfectly when i run the application from visual studio but when i deployed this in to IIS 7.5 this ajax function is not working</p>
  
  <p>I tried the URL as <code>url: '../UpdateDetail/GetlocationAjax',</code> then the same not work at local level also but I have another application in which I call an ajax function as </p>
  
  <pre><code> $.ajax({
          type: "GET",
           url: '../Preapproval/Getactivitycodetype',
           dataType: "json",
           success: function (result) {
                            $("#code_type-" + index)
           .append($('&lt;option&gt;&lt;/option&gt;').val("").html("--Type--")
                               );
                              $.each(result, function (key, val) {
                                  $("#code_type-" + index).append(
                                  $('&lt;option&gt;&lt;/option&gt;').val(val).html(key)
                                  );
                              });
                          },
                          error: function (result) {
                          }
                      });
  </code></pre>
  
  <p>This works in both local and IIS perfectly.</p>
  
  <p>What can be the issue my first ajax function not work in IIS?</p>