title: Page method is returning content of whole page
body: <p>My page method is returning whole page insted of result from the server side. In my local environment it is working fine but when I deploy it to azure I am getting this problem.</p>
  
  <p>My code is:</p>
  
  <pre><code>function LoadLogsOnSucceeded(result) {
      document.getElementById('divHistoryHeader').innerHTML = result.Header;
      document.getElementById("divHistoryList").innerHTML = result.List;
  }
  
  function LoadLogs() {
      var searchTxt = $("#txtLogsearch").val();
      var maxRecords = $('select[id=drplogSearchMaxRecords]').val();
  
      PageMethods.LoadLogs(searchTxt, maxRecords, LoadLogsOnSucceeded, OnFailed);
  }
  </code></pre>
  
  <p>In config I have not added </p>
  
  <pre><code>&lt;httpModules&gt;
    &lt;add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/&gt;
  &lt;/httpModules&gt;
  </code></pre>
  
  <p>when I add that into my config then in local also project is not working getting error like </p>
  
  <p>"The page cannot be displayed because an internal server error has occurred."</p>