There's a lot broken with the stock standard ASP.NET MVC error handling. It can't display cshtml (Razor) pages :( They 302 redirect to the html error page. There's too many places to wire up, to handle errors.
Fear not! This package can save your day!
Install it and then define your error pages in your web.config. That's more or less it :)
The hard work has now been done.
Once more you can take control of your error handling with your ASP.NET MVC applications!
Regrets? Never! Go do it! Fix up all your busted apps. Now.
See the version list below for details.
Install-Package MagicalUnicorn.MvcErrorToolkit -Version 2.1.1
dotnet add package MagicalUnicorn.MvcErrorToolkit --version 2.1.1
<PackageReference Include="MagicalUnicorn.MvcErrorToolkit" Version="2.1.1" />
paket add MagicalUnicorn.MvcErrorToolkit --version 2.1.1
- Http Status Codes 3xx do not get handled as an error. (Cheers to Siim Viikman!)
- BugFix: Better way to reference the system.web/customErrors config section (Cheers again to Siim Viikman!)
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.