HttpHandler path matching

brave24

New Member
In ASP.NET 4.0 with IIS7, I created a HttpHandler and registered it in web.config\[code\]<add name="MyHandler" path="MyPath/*" verb="*" type="MyProject.MyHandler, MyHandler" />\[/code\]Here, what I try to achieve is to handle all the file requests to \[code\]http://my-server/MyPath/*\[/code\], but with such settings the requests to \[code\]http://my-server/SubFolder/MyPath/*\[/code\] will also be handled, not what I want.Is the absolute path the only way I can use to guarantee first level folder match?Any other better idea?
 
Back
Top