Last post Jan 11, 2009 06:37 PM by joshcomley
Mar 30, 2008 10:13 PM|northdevil|LINK
When registering httpHandlers, I can specify a path to match, like this:
<add verb="*" path="*.aspx" type="MyHttpHandler,MyAssembly">
it can match all the aspx files.
But, some times I do not want to match all the aspx files, so I put the files that I want to match in a special folder "secure", and change the config like this:
<add verb="*" path="secure/*.aspx" type="MyHttpHandler,MyAssembly" />
It does well for the *.aspx files under "secure" directory, but it does not work if the file is under the subdirectory of secure. so, if I have to put files in several subdirectories, I have to add the "<add>" configs for each directory.
this won't work out if you have many sub directories or if you have dynamic sub directories generated.
any comments on this ?
Mar 30, 2008 10:40 PM|northdevil|LINK
Apr 01, 2008 11:13 PM|Zhao Ji Ma - MSFT|LINK
This is because of ASP.NET configuration inheritance; you can find the information here:
Jan 11, 2009 06:37 PM|joshcomley|LINK
HttpHandler web.config sub directory path directories subdirectories