title: .NET Web Service "Could not create type"
body: <p>The markup and code-behind file contents for my .NET Web Service are as follows (pretty much what VS generated):</p>
  
  <p><strong>Services.asmx:</strong></p>
  
  <pre><code>&lt;%@ WebService Language="VB" CodeBehind="Services.asmx.vb" Class="Services" %&gt;
  </code></pre>
  
  <p><strong>Services.asmx.vb:</strong></p>
  
  <pre><code>Imports System.Web.Services
  Imports System.Web.Services.Protocols
  Imports System.ComponentModel
  
  &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 Services
      Inherits System.Web.Services.WebService
  
      &lt;WebMethod()&gt; _
      Public Function HelloWorld() As String
          Return "Hello World"
      End Function
  End Class
  </code></pre>
  
  <p>When I try to access the web service, I get: </p>
  
  <p><strong>Parser Error Message:</strong> Could not create type 'Services'</p>
  
  <p>I've tried qualifying the Services class specification in the markup with a namespace, to no avail.</p>
  
  <p><strong>When I put the code-behind in the same file as the .asmx, everything works fine.</strong></p>