Sometimes, ExtractCommandName extracts the
wrong command names from the URL. For example:
URL: /Static.cmd/System/Benefits
Command name: Static
URL: /Static.cmd/System/Benefits.xml
Command name: Static.cmd/System/Benefits
ASP.NET evaluated the directives in web.config
(path="*.cmd") the right way, and handed the
request over to Maverick. However, Maverick is not
able to extract the command name from the URL if
the last period does not belong to the command
name itself.
The simplest solution is to use Request.FilePath
instead of Request.Path:
Maverick\Dispatcher.cs:43
string path = context.Request.FilePath;
Regards, Alex