![]() |
The following document was provided by Microsoft. I'm reposting it with the final solution that worked for me with minor corrections to the original as well as a pair of .REG files to set and unset the registry for debugging.
Rick Strahl - http://www.west-wind.com/
This method allows debugging IIS directly from the VStudio environment, where you can simply run IIS from the Debug menu and then set breakpoints on your code when it gets called. Although, there are mechanisms for attaching to the INETINFO service directly, this is tedious as hell and causes IIS to go unstable, so I prefer the method outlined below.
This approach requires the establishing of NT security privileges as well as making changes to the registry. It will also disable your ability to run IIS as a service unless you reverse the registry settings. Two registry files (one to set and one to unset) that automate the registry hacks can be downloaded from http://www.west-wind.com/files/IIS4Debugging.zip .