This repository has been archived by the owner on Jan 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Generating a custom error page
Nathan Armstrong edited this page Apr 6, 2017
·
8 revisions
A blog post explaining this in C# is available here
Additional (more recent) C# post is available here.
A blog post in VB.Net is available here(404)
A note on the IStatusCodeHandler in release mode
If your app is setup with IStatusCodeHandler
s, and you want to continue to provide custom error pages for status codes of 50x (internal server error) for view rendering exceptions when compiling for release, you will need to manually set StaticConfiguration.DisableErrorTraces = false in your Bootstrapper.ApplicationStartup override. For more info on this, see issue #2052.
« Part 17. Adding a custom FavIcon — Documentation overview — Part 19. The cryptography helpers »
- Introduction
- Exploring the Nancy module
- Routing
- Taking a look at the DynamicDictionary
- Async
- View Engines
- Using Models
- Managing static content
- Authentication
- Lifecycle of a Nancy Application
- Bootstrapper
- Adding a custom FavIcon
- Diagnostics
- Generating a custom error page
- Localization
- SSL Behind Proxy
- Testing your application
- The cryptography helpers
- Validation
- Hosting Nancy with ASP.NET
- Hosting Nancy with WCF
- Hosting Nancy with Azure
- Hosting Nancy with Suave.IO
- Hosting Nancy with OWIN
- Hosting Nancy with Umbraco
- Hosting Nancy with Nginx on Ubuntu
- Hosting Nancy with FastCgi
- Self Hosting Nancy
- Implementing a Host
- Accessing the client certificate when using SSL
- Running Nancy on your Raspberry Pi
- Running Nancy with ASP.NET Core 3.1