Jquery Ajax Call Works On Localhost, But Not On Live Server
I've researched this issue all day and it seems to be a somewhat common problem, but I have not been able to find a solution. I am using jquery's $.ajax() function to make a servic
Solution 1:
Comment by @Mike W led me to look into the server error logs a bit, where I found:
Exception type: InvalidOperationException
Exception message: Request formatis unrecognized for URL unexpectedly ending in'/OrderStatements'.
I googled that message which let me to this stack overflow question and it seems like it was as simple as adding this to the systen.web section of my config file:
<webServices><protocols><addname="HttpGet"/><addname="HttpPost"/></protocols></webServices>
Solution 2:
Can you Try adding below line into your web.config httpHandlers
<system.web><httpHandlers><addverb="*"path="*.asmx"type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services" /></httpHandlers></system.web>
Solution 3:
There Might be a problem with the Host link You have provided in JavaScript/Jquery
Please take a note down If you are looking this at chrome clear the browser data and you will see same result at both ends
Post a Comment for "Jquery Ajax Call Works On Localhost, But Not On Live Server"