title: Web Service error 'Could not create type' when calling service from Ajax
body: <p>I've downloaded the Ajax Control toolkit</p>
  
  <p>When I create a website from the Ajax control Toolkit template, I can create a web service in a single file (asmx) and hook this up to different Ajax controls provided in the toolkit.</p>
  
  <p>However if I add the Toolkit to an existing ASP.Net 2.0 appliction web project I cannot create web services in a single asmx file. If I create a web service VS always creates a code behind file as well. As a result of this calls to the web service (or loading the service directly in the browser) generate the following error:</p>
  
  <pre><code>Parser Error 
  Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
  
  Parser Error Message: Could not create type 'AddAjaxToApplication.List'.
  Source Error: 
  
  Line 1:  &lt;%@ WebService Language="C#" CodeBehind="List.asmx.cs" Class="AddAjaxToApplication.List" %&gt;
  </code></pre>
  
  <p>Does anyone know how to resolve this?</p>
  
  <p>Thanks,</p>
  
  <p>Tim</p>