title: How do I attach Visual Studio 2010 to IIS 7 to debug a custom HttpModule written for an existing 3rd party web application
body: <p>First a little background on what I am trying to achieve.</p>
  
  <p>I have a client application that is utilizing REST services served by ArcGIS Server and IIS 7. I want to be able to modify the response (remove or add parameters) before the response is sent to the client.  Therefore, I am developing a custom HttpModule using Visual Studio 2010 and .NET 3.5 to intercept and modify the response.</p>
  
  <p>However, I am having difficulty debugging my custom HttpModule.  I can attach to the IIS process using Visual Studio 2010 when it is run as Administrator, however, executing the web 3rd party web application does not cause any of my breakpoints to be hit.   I can confirm that my module is running as it is able to write the contents to a file on disk.</p>
  
  <p>Things to note, </p>
  
  <ol>
  <li>The 3rd party web application is running in a virtual directory <em>(e.g., arcgis/rest/)</em> under the default website in IIS 7.  It is running under its own application pool which is configured for .NET 2.0 rather than 4.0.</li>
  <li>The custom module is installed in the web applications bin folder and has been configured using the web.config file rather than the IIS 7 module management.</li>
  </ol>
  
  <p>To summarize:  How can I debug a custom HttpModule I developed for a 3rd party web application using Visual Studio 2010?</p>