Solution: Below are the changes you need to do in global.asax
protected void Application_BeginRequest(object sender, EventArgs e)
{
// For Web service to work for Jquery Ajax
if (Request.Path.IndexOf(".asmx") != -1)
{
IgnoreWebServiceCall(HttpContext.Current);
return;
}
}
private void IgnoreWebServiceCall(HttpContext context)
{
int dotasmx = context.Request.Path.IndexOf(".asmx");
string path = context.Request.Path.Substring(0, dotasmx + 5);
string pathInfo = context.Request.Path.Substring(dotasmx + 5);
context.RewritePath(path, pathInfo, context.Request.Url.Query);
}