Nilesh Patil

Nilesh Patil

  • NA
  • 3k
  • 111.7k

Failed to load resource: the server responded with a status

Jun 17 2019 9:36 AM
Hi,
 
I am used Post method in ajax call, my method is working fine on local but gives error when publish it on Server.
 
Here is my Ajax call:
 
$.ajax({
type: "POST",
url: "Warehouse.aspx/ScaleDatabase",
data: "{ subscriptionId: '" + subscriptionId + "',rgGroup: '" + rgGroup + "',Server: '" + Server + "',Database: '" + Database + "',PerformanceTier: '" + PerformanceTier + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",
timeout: 1000 * 60 * 20,
cache: "false",
success: function (msg) {
var response = msg.d;
alert( response);
$.unblockUI();
GetSubscriptions2();
},
Error: function (x, e) {
alert("Something went wrong,Please try again");
}
 

Answers (1)