I came across a problem when a virtual directoy I had created inherited the setting from my web config file in the parent directory. I was always aware of this, and had used it to great effect, however, in this case, the parent site had all sorts of http modules/handlers and page directives included, and I really didn't want to (a) copy all of the bin files across just to make it work, or (b) add a whole bunch of <remove /> tags to the various sections just to take them out.
After a bit of trial-and-error typing, I came across...