title: getting blank page in web service
body: <p><a href="https://i.stack.imgur.com/HT0gL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HT0gL.png" alt="enter image description here"></a></p>
  
  <p>I am trying to learn about web services and wcf but it doesn't go well. I get same problem with wcf so I tried webservice but get same page with this too. Even when I make exactly same things with wcf or web service example videos, I get this screen. What am I doing wrong and why is it happening ? And ofcourse how can I fix it ?</p>
  
  <p>My .asmx class:</p>
  
  <pre><code>[WebService(Namespace = "http://tempuri.org/")]
  [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
  [System.ComponentModel.ToolboxItem(false)]
  // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
  // [System.Web.Script.Services.ScriptService]
  public class HelloWebService : System.Web.Services.WebService
  {
  
      [WebMethod]
      public string GetMessage(string name)
      {
          return "Hello " + name;
      }
  }
  </code></pre>
  
  <p>My .aspx page:</p>
  
  <pre><code>&lt;body&gt;
  &lt;form id="form1" runat="server"&gt;
  &lt;table style="font-family:Arial"&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;
              &lt;asp:Button ID="Button1" OnClick="Button1_Click" runat="server" Text="Button" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;asp:Label ID="Label1" runat="server" Font-Bold="true" Text=""&gt;&lt;/asp:Label&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p></p>
  
  <p>and my codebehind:</p>
  
  <pre><code>protected void Button1_Click(object sender, EventArgs e)
      {
          HelloService.HelloWebServiceSoapClient client = 
              new HelloService.HelloWebServiceSoapClient();
  
          Label1.Text = client.GetMessage(TextBox1.Text);
  
      }
  </code></pre>