1

when calling for example http://localhost/odata/test - (no TestController implemented),

Odata return internal server error instead of 404 (Not Found).

What can I do?

adi ben
  • 491
  • 5
  • 15

1 Answers1

2

Confirm the path="*." in the web.config file (inside <system.webServer> <handlers>)

    <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
Nate Anderson
  • 18,334
  • 18
  • 100
  • 135
Sivakumar
  • 36
  • 4
  • 1
    This seems to fix the issue at hand, but in turn, routes with a dot after the last slash do not work anymore. I have created a [question](https://stackoverflow.com/questions/60865362) about that particular catch-22. – O. R. Mapper Mar 26 '20 at 10:47