title: WebMethod not called (triggered) by PageMethod in Visual Studio 2013
body: <p>I have the following problem:</p>
  
  <p>The call from a WebMethod is not being done on a project created in Visual Studio 2013 (ASP.NET WebForms Application). If I create a project, for example, in Visual Studio 2008 and migrate to VS 2013 works correctly. The problem only occurs when I create a new project in Visual Studio 2013. There is no error message in the console. The WebMethod is just not being called. Nothing happens. I searched a lot but found nothing about it.</p>
  
  <p>ASPX code:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="TestePageMethods._Default" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;asp:ScriptManager ID="ScriptManager1" EnablePageMethods="true" runat="server" /&gt;
  
      &lt;script type="text/javascript"&gt;
  
          function testeClick() {            
              PageMethods.SayHello("Name");        
          }  
  
      &lt;/script&gt;
  
      &lt;input type="button" value="Say Hello" onclick="testeClick();" /&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>ASPX.VB code:</p>
  
  <pre class="lang-vb prettyprint-override"><code>Partial Public Class _Default
      Inherits System.Web.UI.Page
  
      Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  
      End Sub
  
      &lt;System.Web.Services.WebMethod(True)&gt; _
      Public Shared Function SayHello(ByVal name As String) As String
          Return "Hello " &amp; name
      End Function
  
  End Class
  </code></pre>
  
  <p>Has anyone tried this or know of a solution? I have no idea what to do ...</p>
  
  <p>EDIT:</p>
  
  <p>Guys, I discovered one more information now:</p>
  
  <p>Working only in VS2013:</p>
  
  <p>-New project.
  -Web - ASP.NET Web Application.
  -Select the template "Empty".
  -Insert a page "Default.aspx", the WebMethod works normally ...</p>
  
  <p>Now, if you create a new project and select the template "WebForms", does not work ...</p>
  
  <p>Can be cross-referenced? or some different setting?</p>