I’m having trouble creating my own 404 NotFound razer page. When I assign it to the CustomErrorHttpHandlers dictionary and try a page that doesn’t exist I get a blank page. No errors and no service is called. I’ve checked for exceptions in my custom service runner and I’ve also tried ServiceExceptionHandlers and UncaughtExceptionHandlers too. I looked at the razor rockstar example and the only real difference is I have NotFound request/response models (with /errors/notfound route attribute).
Stephen Brannan:
Hi Demis, I saw your comment on the ticket. Please take a look at my reply. I tried everything you suggested and nothing worked.
Stephen Brannan:
Putting it under /Views was the issue. It’s working now. Thanks Demis as always!
Hmmm. this should work, e.g: https://servicestack.net/non-existant-route
So we’d need to work out what’s happening here, can you create a new issue on https://github.com/ServiceStack/Issues and add some details we can diagnose the issue, e.g:
- Full HTTP Request / HTTP Response headers (Can use fiddler or Chrome WebInspector)
- Show the debug requestinfo output, e.g ?debug=requestinfo
- Include details of any Request Filters that you’re using
Stephen Brannan:
Thanks Demis. I’ll make a demo app to reproduce the error and include it in the new issue.
ok thanks will take a look.