I have a site which uses WebForms. It has a service which used to work, but my host recently migrated the site to a new server. The DB connections are working but my asmx service is now broken.
I have this signature:
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
[WebMethod]
public string GetJarLabel(string type, string serialized)
{
Which I'm calling with this jQuery:
var requestData = {
"type": "jam",
"serialized": JSON.stringify(data)
};
$.ajax({
type: "POST",
url: "/Labels.asmx/GetJarLabel",,
contentType: "application/json; charset=utf-8",
dataType: "json",
processData: false,
data: JSON.stringify(requestData),
error: function(xhr, status, ex) {
...snip
},
success: function(r) {
...snip
}
});
The request seems to be submitted as far as I can tell, but the service responds 500: Invalid web service call, missing value for parameter: 'type'. I've tried switching to GET, stringifying, not stringifying but nothing works. I'm sure this worked before the migration but can't see how that would have affected it.

processData: false,and changedata: JSON.stringify(lblData),to justdata: lblData,. jQuery will then url-encoded the data parameters for you automatically.lblDatato the server, but it's not defined. You definedrequestDatabut that isn't used. I'm assuming it's just a mistake here, not your real code?processData