Debugging .asp pages with visual studio 2005
Are you using Winxp with IIS installed? If so, here's what I do: push the asp pages in the browser using local IIS and then open the folder where the ASP pages reside as a website project in VS. Go to the Debug menu, select Attach to Process, and then locate the dllhost.exe process that runs under the user IWAM_MACHINENAME. You should also make sure that you have configured the virtual directory to enable ASP server side debugging. After attaching to this process, you can set breakpoints etc. as usual.
source to share
In addition to patmortech's answer , I would recommend that if you are testing a mixed technical site that you attach to aspnet_wp to debug parts of a .NET application. This is also true if your application uses third party ISAPI filters.
The Cassini server is only good for pure .NET.
source to share