title: Unknown web method Delete_Local_ABC. Parameter name: methodName in ASP.NET app
body: <p>I have been getting this error on my following code, which basically initiates the <code>POST</code> request as
  <code>ABC.ascx</code></p>
  
  <pre><code>var ABCid = $(aTag).data('id');
          $.ajax({
              type: "POST",
              url: "WebMethods.aspx/Delete_Local_ABC",
              data: "{'id':'" + ABCid + "'}",
              contentType: "application/json; charset=utf-8",
              dataType: "json",
              success: successdelete_ABC,
              error: Errordelete_ABC
          });
      }
  </code></pre>
  
  <p><strong><code>WebMethods.aspx.cs</code></strong></p>
  
  <pre><code>[WebMethod]
  public static int Delete_Local_ABC(string id)
  {
      ABC objABC = new ABC();
      objABC.ABC_ID = Convert.ToInt32(id);
      // call business manager
      try
      {
          BusinessManager businessManager = new BusinessManager();
          businessManager.ManageABC(objABC, OperationTypes.Validate);
          return 1;
      }
      catch (Exception ex)
      {
          throw ex;
      }
  }
  </code></pre>
  
  <p>and I am calling following method in <code>BusinessManager.cs</code></p>
  
  <pre><code>....
  case OperationTypes.Validate: 
                      obj.deleteLocalABC();
                      break;
  ...
  </code></pre>
  
  <p>and <code>ABC.cs</code></p>
  
  <pre><code>public bool deleteLocalABC()
          {
              string query = "DELETE FROM TBL_ABC WHERE ABC_ID ='" + this.ABC_ID + "'";
              _dbManager.executeQuery(query);
  
              return true;
          }
  </code></pre>
  
  <p>I have tried all the solutions available online but nothing is working. This code works perfectly with <code>Visual Studio</code> but not on main deployment.</p>