RUN SQL QUERY ON THE DB:
RESTORE DATABASE [DATABASENAME] WITH RECOVERY
RUN SQL QUERY ON THE DB:
RESTORE DATABASE [DATABASENAME] WITH RECOVERY
Set Python 3.5 with higher priority
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 2
Check the result
sudo update-alternatives --config python
python -V
1. <customErrors mode="Off" /> (off - Everyone gets to see your errors guts, On - Everyone gets the Nice error page. remoteonly - only those local to the code get to see the errors guts)
2. Global error handling => false (EPiServers handling of this is problematic. <applicationSettings globalErrorHandling="Off")
3. Set route -> routes.MapRoute("Error_404", "notfound", new { controller = "DefaultPage", action = "Error404" });
4. Use httpErrors to direct to Your 404 action (<error statusCode="404" path="/notfound" responseMode="ExecuteURL" />)
5. Controller:
[BVNetwork.NotFound.Core.NotFoundPage.NotFoundPage] public ActionResult Error404() { var startPage = ContentReference.StartPage.GetPage<StartPage>(); var notFoundPage = startPage.NotFoundPage.GetPage<StandardPage>(); ControllerContext.RequestContext.SetContentLink(startPage.NotFoundPage); Response.StatusCode = (int)HttpStatusCode.NotFound; Response.TrySkipIisCustomErrors = true; var model = CreateModel<StandardPage>(notFoundPage); return View("~/Views/StandardPage/Index.cshtml", model); }
When running the scheduled job you get something like: {"status":401,"error":"Unauthorized"}
Solution:
Remove all entries from the Episerver find index job in: the tblScheduledItemLog db table. You can get the GUID id of the job in the table tblScheduledItem.
SQL
DELETE FROM [YOURDB].[dbo].[tblScheduledItemLog]
WHERE fkScheduledItemId = 'YOUR GUID'
<section name="example" type="Examples.Configuration.ExampleSection,
Examples.Configuration" />
<section name="example" type="{Hela adressen till classen inkl namespace},
{Namespace där klassen ligger}" />