KXB.Umbraco.NotFoundHandler
1.0.2
dotnet add package KXB.Umbraco.NotFoundHandler --version 1.0.2
NuGet\Install-Package KXB.Umbraco.NotFoundHandler -Version 1.0.2
<PackageReference Include="KXB.Umbraco.NotFoundHandler" Version="1.0.2" />
paket add KXB.Umbraco.NotFoundHandler --version 1.0.2
#r "nuget: KXB.Umbraco.NotFoundHandler, 1.0.2"
// Install KXB.Umbraco.NotFoundHandler as a Cake Addin #addin nuget:?package=KXB.Umbraco.NotFoundHandler&version=1.0.2 // Install KXB.Umbraco.NotFoundHandler as a Cake Tool #tool nuget:?package=KXB.Umbraco.NotFoundHandler&version=1.0.2
A 404 handler which allows you to spesify an Umbraco documenttype as a 404 page.
This allows us to use actual umbraco content as content for our 404 page.
Getting started:
Web.config:
- Add httpErrors existingResponse="PassThrough" to the webServer section of your webconfig.
Global.asax:
- We need to register the handler with umbraco's ContentResolver.
- Add following line to the OnApplicationStarting method in your Global.asax.cs
** ContentLastChanceFinderResolver.Current.SetFinder(new KXB.Umbraco.NotFoundHandler.NotFoundHandler()); **
To implement a custom handler it is possible to override the NotFoundHandler.TryFindContent(PublishedContentRequest contentRequest) method.
=========================================================================
This package is part a set of smaller modules that I have found useful when working with umbraco.
Other packages include:
- KXB.Umbraco.RouteHijacking
- KXB.Umbraco.Search
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- ClientDependency (>= 1.9.2)
- log4net (>= 2.0.8)
- Microsoft.AspNet.Mvc (>= 5.2.3)
- Microsoft.Owin (>= 3.0.1)
- Microsoft.Owin.Security (>= 3.0.1)
- Microsoft.Owin.Security.Cookies (>= 3.0.1)
- Microsoft.Owin.Security.OAuth (>= 3.0.1)
- Newtonsoft.Json (>= 10.0.2)
- UmbracoCms.Core (>= 7.6.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Decreased target framework to v4.5.2