[Mono-aspnet-list] HTTP handlers not registering correctly under Mono MVC 3

James Rhodes jrhodes at redpointsoftware.com.au
Sun May 5 12:39:29 UTC 2013

As I have posted at Stack Overflow
I'm having some very weird behaviour with HTTP handlers under Mono
with MVC 3 over FastCGI.  Yes, I know how specific that is, but it's
pretty much this combination that's causing the issue.

I don't want to repeat all of the details that I've posted at Stack
Overflow (it's quite extensive), but needless to say, this is a case
where the same site runs fine and the HTTP handlers work under the
XSP4 server, but not under FastCGI.

As a brief overview:

- It appears that under FastCGI, the path="" attribute of the HTTP
handler is an exact match.  i.e. a path of "cassette.axd" will only
match "http://tychaia.com/cassette.axd" and will not match
 Under XSP4, the second path matches and is directed to the handler
- Under FastCGI, MVC's IgnoreRoute method won't match "cassette.axd"
if you ignore the route "{resource}.axd/{*pathInfo}" and so MVC
captures it.  Under XSP4, the path is ignored correctly and the URL is
allowed to pass through to the HTTP handler.  Interestingly, if I
specifically ignore "cassette.axd" as a route, it lets it drop through
to the HTTP handler, but then I encounter the issue of the path=""
attribute not matching correctly above.

If anyone has any ideas as to why this might be happening, it'd be
appreciated.  I've tried this on both Mono 3.0.7 and 3.0.10, and both
exhibit this behaviour.

Regards, James Rhodes.
Redpoint Software


More information about the Mono-aspnet-list mailing list