title: .NET Web Service Root Namespace
body: <p>I'm trying to set up a .NET 3.5 web service project in Visual Studio.  My goal is to include a namespace in this web service that I can expose to web applications that references this web service.</p>
  
  <p>As you can see below, I have added the namespace "MyWebservices", but I am not able to find it after referencing the web service.</p>
  
  <p><strong>Service1.asmx.vb</strong></p>
  
  <pre><code>Imports System.Web.Services
  Imports System.Web.Services.Protocols
  Imports System.ComponentModel
  
  Namespace MyWebservices
  
   ' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
   ' &lt;System.Web.Script.Services.ScriptService()&gt; _
   &lt;System.Web.Services.WebService(Namespace:="http://tempuri.org/")&gt; _
   &lt;System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)&gt; _
   &lt;ToolboxItem(False)&gt; _
   Public Class Service1
    Inherits System.Web.Services.WebService
  
    &lt;WebMethod()&gt; _
    Public Function HelloWorld() As String
     Return "Hello World"
    End Function
  
   End Class
  End Namespace
  </code></pre>
  
  <p><strong>Service1.asmx</strong></p>
  
  <pre><code>&lt;%@ WebService Language="VB" CodeBehind="Service1.asmx.vb" Class="WebService1.MyWebservices.Service1" %&gt;
  </code></pre>
  
  <p>Note:  I have also attempted to modify the "Root Namespace" property of the web service project, but I can't get that to work for me either.</p>