Debugging with HTTP Authentication Modules
October 20th, 2002 by gregr
I’ve gotten a bunch of e-mail recently, asking how to use the debugger when using my Basic or Digest authentication HTTP modules. The problem is, if you disable Integrated Windows authentication on a virtual directory, the VS.NET debugger will be unable to start debugging within that vdir.
Here’s what I do. Say I have a virtual directory FooService; I create a subdirectory (not a vdir) under it called ‘basiconly’, for example.
/FooService
/basiconly
Inside basiconly, put the pages that you want to be secured.
The FooService vdir has Anonymous and Integrated Windows Auth turned on. The basiconly directory has only anonymous enabled.
The debugger will start successfully because it can access the root of the vdir using windows auth. And when you browse to the secured pages within basiconly, access will be authenticated and you can watch the whole thing in the debugger.
This entry was posted on Sunday, October 20th, 2002 at 6:37 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

September 15th, 2005 at 3:26 pm
This is a great module, thanks for providing it!