Interesting here. I have an ASP.NET 1.1 project that contains a web service. I am using jQuery AJAX to call some services from a client. This is what my code looks like:
$.ajax({
type: "POST",
url: 'foo.asmx/functionName',
data: 'foo1=' + foo1 + '&foo2=' + foo2,
dataType: "xml",
success: function(xml) {
},
error: function(request, error){
}
});
This works fine when I launch a site from my IDE on localhost. However, when I deploy this site to any other server, I get a parsererror error from jQuery. It does not seem to even call my service since I went into some code to write the log file to disk, and it does not do it there.
The exact same XML should be returned both from my local host and from the server on which I was deployed.
Any ideas?
source
share