I've had most luck with not using the 404 feature in Url Configuration since it breaks too many things, from custom http handlers to WebApi to other general routing.
Instead use the vanilla 404 handling povided by asp.net and IIS. It just works.
Instead use the vanilla 404 handling povided by asp.net and IIS. It just works.