title: Resolving compiler error CS1519: Invalid token ',' in class, struct, or interface member declaration
body: <p>I'm working on an ASP .NET 2.0 site which uses a Web Application project file, and therefore compiles to a dll rather than deploying the source code as you do with the older style Web Site projects.</p>
  
  <p>The site works fine on my test server (Windows Server 2003 R2, IIS6) when it runs in the root of a website. However I need to run it under a virtual directory instead. When I switch over to that, I get the following error on browsing to any of the pages in the site</p>
  
  <p>CS1519: Invalid token ',' in class, struct, or interface member declaration</p>
  
  <p>The error message goes onto tell me the line number and code file, however the code file is under the Temporary ASP .NET files folder and when I try to find it, it's not there.</p>
  
  <p>As such I'm unable to work out which page is causing the issue although I suspect it could be the master page, if this error occurs on all pages. Has anyone else seen this before or found a solution?</p>