title: 500 -Internal error on web service
body: <p>I just recently switched from shared hosting to a vps on GoDaddy.  I had a webservice that worked just fine on the shared hosting.  I am trying to get it working under my vps.  I continually get a 500 - internal error when going to the link. </p>
  
  <p>I did set it up as a application in IIS, and i made its own application pool using integrated pipes.  </p>
  
  <p>Any ideas on what else may be causing this issue?</p>
  
  <p>EDIT 1:
  If i switch my application pool over to use the same application pool as my site, i get this error instead:
  "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.</p>
  
  <p>Parser Error Message: The page must have a &lt;%@ webservice class="MyNamespace.MyClass" ... %> directive.</p>
  
  <p>Source Error:</p>
  
  <p>Line 1:  This is a marker file generated by the precompilation tool, and should not be deleted!</p>
  
  <p>Source File: /webservices/namesearch.asmx    Line: 1 "</p>
  
  <p>Here is my web.config</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;appSettings/&gt;
    &lt;connectionStrings/&gt;
    &lt;system.web&gt;
  
  
   &lt;compilation debug="true" targetFramework="4.0"/&gt;
  &lt;!--
    The &lt;authentication&gt; section enables configuration 
    of the security authentication mode used by 
    ASP.NET to identify an incoming user. 
  --&gt;
      &lt;authentication mode="Windows"/&gt;
        &lt;customErrors mode="Off"/&gt;
  
        &lt;!--
         The &lt;customErrors&gt; section enables configuration 
         of what to do if/when an unhandled error occurs 
         during the execution of a request. Specifically, 
         it enables developers to configure html error pages 
         to be displayed in place of a error stack trace.
  
         &lt;customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"&gt;
           &lt;error statusCode="403" redirect="NoAccess.htm" /&gt;
           &lt;error statusCode="404" redirect="FileNotFound.htm" /&gt;
         &lt;/customErrors&gt;
      --&gt;
      &lt;pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/&gt;
    &lt;/system.web&gt;
    &lt;!-- 
          The system.webServer section is required for running ASP.NET AJAX under Internet
          Information Services 7.0.  It is not necessary for previous version of IIS.
      --&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>EDIT 2:
  So i noticed on that parser error it was also saying "Source Error:</p>
  
  <p>Line 1:  This is a marker file generated by the precompilation tool, and should not be deleted!"</p>
  
  <p>so i tried to do a precompile on the webservice.  When i do this i get the error saying "It is an error to use a section registered as allowDefinition='machinetoapplication' beyond application level. this error can be caused by a virtual directory not being configured as an application in iis"</p>