title: What is debugattach.aspx and why can't the server find it?
body: <p>I'm developing on an XP (SP3) machine with VS 2010 and IIS 5.</p>
  
  <p>I have two versions of the same site.  We've released our first production version, so I forked the code into a new directory tree, and set up new virtual directories in IIS to point to the new trees. The projects are set up to run in the IIS rather than VS's server. The main site is an MVC 2 based project.</p>
  
  <p>My problem is that, when I hit F5 in Visual Studio 2010 to begin debugging the new version, I get a "Unable to start debugging on the Web Server. The web server could not find the requested resource."  I spent the better part of yesterday trying to figure out what resource it was looking for that it couldn't find.  This occurs before it ever gets to "Application Start".  I finally thought of looking in the Web logs, and found that whenever I hit the F5 key, the web log shows a DEBUG request for /debugattach.aspx, with a return code of 404 (not found).  If I run the same sequence on the old version, it shows the same thing, but first with a 401 code, and then the request repeated with a 200 code.</p>
  
  <p>My first thought was that VS must be writing out a "debugattach.aspx" file, and then invoking it, and maybe it doesn't have write permission to the directory, but, as far as I can tell, it does.</p>
  
  <p>I've googled debugattach.aspx, and the first several pages of articles that are returned all seem to refer to lockup's and timeouts, mostly on IIS 7 and VS 2005.  Nothing that seems to apply to this situation.</p>
  
  <p>Looking at what's different between the old version that works and the new version that doesn't, the only things are the IIS setup of the virtual directories, and the web.config on the code itself.  But I've gone over the two sites side by side, and can't find any differences that account for this behavior.</p>
  
  <p>Does anybody have a clue they can share with me? Or can anyone point me to any documentation on what exactly debugattach.aspx is/does, and what a DEBUG HTTP request does, and/or how VS uses them?</p>
  
  <p>Thanks in advance.</p>