OData v4 ExtensionlessUrlHandler 500 error for 404s

Has anyone else noticed that while adding the "ExtensionlessUrlHandler-Integrated-4.0" handler enables successful resolution of valid end points with periods, it causes ANY INVALID end points (with or without a period in the URL) that should result in a 404 return a 500?


I almost think it's better to not include this handler and use a trailing slash on all urls. Any ideas?


Handler for ref:



<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="/*" verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>