Check that the Web application uses both Anonymous and Integrated Windows authentication -- in IIS, under Directory Security. In order to debug the Web application, VS.NET needs to connect with your Windows identity to the Web server (IIS).
Alternatively, you can also select Start Without Debugging, and then use the Debug -> Processes menu option to attach to the asp_wp.exe process and start debugging.
This was first published in August 2003