Remove multiple dashes in Episerver automatic generated urls

When Episerver automatically generates url for a page in the CMS you will get multiple dashes (-) if there is a dash with a space before or after in the page name. If you don't like that there is a way to replace the multiple dashes with a single one by creating an Initialization module and hook up on the event which is fired after the url is created. The pre Episerver v10 way to do this was using the UrlSegment class and hooking up on the CreatedUrlSegment event and…

Keep reading

Retrieving the LoaderExceptions property of ReflectionTypeLoadException in ASP.NET Core

I recently had a ReflectionTypeLoadException in a Docker hosted ASP.NET Core application. The exception looks something like this: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.RuntimeAssembly.get_DefinedTypes() at Microsoft.AspNetCore.Mvc.Controllers.ControllerFeatureProvider.PopulateFeature(IEnumerable`1 parts, ControllerFeature feature) at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature[TFeature](TFeature feature) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.GetControllerTypes() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionDescriptorProvider.BuildModel() at Microsoft.…

Keep reading

Setting up a Ghost blog in production

This blog runs on Ghost and I thought why not share what steps I took when setting it up for production. There is a lot of detailed information on how to set up Ghost so this will be more of a overview of the steps i took and links to the guides I used. First of all I have to say that I love Ghost so far! I downloaded it and installed it on my local computer following the installing Ghost documentation. After playing around a bit with the markdown…

Keep reading