title: Passing JSON value to Web Method returns 'Unknown web method DoesUserExist. Parameter name: methodName' error
body: <p>Hi this is my javascript:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          function validateEmail(email) {
              var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
              if (!emailReg.test(email)) {
                  return false;
              } else {
                  return true;
              }
          }
  
          $("#coreContent_mainContent_txtEmail").blur(function () {
              var email = $("#coreContent_mainContent_txtEmail").val();
  
              if (!validateEmail(email)) {
                  $("#coreContent_mainContent_errorIconEmail").css("display", "block !important").fadeIn(200);
                  $("#coreContent_mainContent_txtEmail").css("-webkit-box-shadow", "0 0 0 1px #2D2D2D, 0 0 0 2px #FF0000 !important").fadeIn(200);
                  $("#coreContent_mainContent_txtEmail").val('');
              } else {
                  $.ajax({
                      type: "POST",
                      url: "/Sign-Up.aspx/DoesUserExist",
                      data: "{'email': '" + email + "'}",
                      contentType: "application/json; charset=utf-8",
                      dataType: "json",
                      success: function (msg) {
                          if (msg == "false") {
                              alert("Email Does Not Exist!");  
                          } else {
                              alert("Email Exist!");
                              $(this).css("display", "block !important").fadeIn(200);
                              $(this).css("-webkit-box-shadow", "0 0 0 1px #2D2D2D, 0 0 0 2px #FF0000 !important").fadeIn(200);
                              $(this).val = "";
                          }
                      }
                  });
              }
  
          });
      });
  &lt;/script&gt; 
  </code></pre>
  
  <p>Now in the ajax post it give me this error 'Unknown web method DoesUserExist.
  Parameter name: methodName' however in my code behind on the same page which is Sign-Up.aspx the method'DoesUserExist' is actually there, this is the code:</p>
  
  <pre><code>[WebMethod]
      public static bool DoesUserExist(string email)
      {
          return false;
      }
  </code></pre>
  
  <p>For now for testing purposes i am only returning false in this above method. However the problem still stands that the ajax call is having trouble finding the webmethod. Any Ideas on how i can solve this?</p>