title: The Resource cannot be found. ASP.Net + jQuery
body: <p>I am using jQuery to call a function from class L1.cs. The jQuery and function are:</p>
  
  <pre><code>     function CallData() {
          alert("hello");
          $.ajax({
              type: "GET",
              url: "/L1/GetLocation",
              contentType: "application/json; charset=utf-8",
              dataType: "json",
              success: function () {
                  alert("Success");
              },
              error: function () {
                  alert("Error");
              }
          });
  </code></pre>
  
  <p>The CS code </p>
  
  <pre><code>public class L1
  {
      public List&lt;Loc&gt; GetLocation()
      {
         //some code
      }
  }
  </code></pre>
  
  <p>For this I get an error: "The resource cannot be found."
  Where I am going wrong?
  Thanks.</p>