title: The HTTP verb POST used to access path .... is not allowed
body: <p>I have a aspx file and I would like to request to WebMethod in same page with Ajax. However I get some error(you can see below) Actually this code worked before change my server.</p>
  
  <p>Server config</p>
  
  <ul>
  <li>IIS 7.5</li>
  <li>.Net Framwork 4</li>
  <li>Windows Server 2008 R2</li>
  </ul>
  
  <p>This is my Webmethod code in "Page.aspx"</p>
  
  <pre><code>[WebMethod]
  public static string deleteOpenedSegment(decimal segmentID)
  {
      bool success = Helper.DeleteSegment(segmentID);
      if (success)
      {
          return "true";
      }
      else
      {
          return "false";
      }
  }
  </code></pre>
  
  <p>And this is my Javascript method in Page.aspx</p>
  
  <pre><code>jQuery.ajax({
         url: 'Page.aspx/deleteOpenedSegment',
         type: "POST",
         data: "{'segmentID':" + getSelectedSegment().attr('id') + "}",
         contentType: "application/json; charset=utf-8",
         dataType: "json",
         success: function (data) {
                    alert("okey");
                  }
         });
  </code></pre>
  
  <p>And also this is capture about request from Google Chrome Web Developer Tool
  <img src="https://i.stack.imgur.com/KP4Pz.png" alt="enter image description here"></p>
  
  <p>Error Log</p>
  
  <blockquote>
    <p>The HTTP verb POST used to access path
    '/............/Page.aspx/deleteOpenedSegment' is not allowed.<br />
    <br />
    System.Web.HttpException The HTTP verb POST used to access path '/......./Page.aspx/deleteOpenedSegment' is not allowed.<br />
    <br />
    System.Web.HttpException (0x80004005): The HTTP verb POST used to access path '/......./Page.aspx/getSegmentHistory' is not allowed.   <br />
         at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
         at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()<br />
         at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,Boolean&amp;  completedSynchronously)<br /></p>
  </blockquote>
  
  <p>Thanks in advance for any help or suggestions!</p>