title: jQuery call to asp.net web method is not working
body: <p>I have a asp.net web method like following</p>
  
  <pre><code>[WebMethod]
  public string getDate() 
  {
     return DateTime.Now.ToString();
  }
  </code></pre>
  
  <p>And my jQuery ajax call is following</p>
  
  <pre><code>$.ajax({
     type: "POST",
     url: "jqueryAjax/Default.aspx/getDate",
     data: "{}",
     contentType: "application/json; charset=utf-8",
     dataType: "json",
     error: function (XMLHttpRequest, textStatus, errorThrown) 
     {
        alert(errorThrown+"what's wrong?"+XMLHttpRequest);
     },
     success: function (msg) 
     {
        alert(msg);
        // Do something interesting here.
     }
  });
  </code></pre>
  
  <p>For some reason my jQuery ajax error handler is getting called. success method is not calling.</p>
  
  <p>Any help will be appreciated.</p>
  
  <p>Thanks</p>