Author: Nicola
-
Episerver Carousel using Bootstrap 4
In this post, I will show you how to implement a carousel in Episerver with Bootstrap. Check out demo here first. Create the carousel block The carousel model can be as simple as a container of all carousel items. So in our implementation, we only have one property to our carousel: [ContentType(DisplayName = “Carousel Block”,…
-
Azure Virtual Machine – Boot diagnostics – Failed to get contents of blob
Update: Turns out that the Boot diagnostics failure that I’ve been getting below has got nothing to do with my Azure Virtual machine being stuck in the “Starting” state. If you arrived on this post because you have the same issue of a VM being stuck in “Starting” state, follow this post instead. Otherwise, keep reading…
-
Configuring an ASP.NET web app with GSuite Gmail SMTP
This one took me several days to configure as it seems like Google has been constantly upgrading its security rules and so I found a lot of solutions online that no longer work. It’s possible this article may get outdated soon but at the time of writing, this is what made my “Contact Us” page…
-
Resharper shortcuts I cannot live without
I’ve had to recently renew my personal license for Resharper Ultimate and I realised it’s been almost 8 years now since I started using Resharper with Visual Studio. Yes, 8 years. This tool is so good I can’t code (and therefore live) without Resharper installed. I know that Visual Studio 2017 has upped its game…
-
Dependency Injection with Unity in an ASP.NET application
You will find lots of articles regarding Dependency Injection and why you should implement this design pattern. While this post is not about the “why” but the “how”, my two cents to “why do it” is below: Code becomes easily testable Components/layers are decoupled Overall promotes maintainability and good software practice This post will guide…
-
How to integrate Product Reviews in an Episerver website
In this post, I will go over how I implemented integration between my Episerver website with ProductReview.com.au There were three things involved in the development: Custom Plugin – This really is just a settings page that allows authors to add multiple endpoints/APIs from Product Reviews (i.e. you have multiple products up for reviews) Scheduled job…
-
How to enable bundling and minification of CSS/JS in ASP.NET
This is a pretty neat way to bundle and optimize your CSS and Javascript files within your ASP.NET application. Install the nuget package Microsoft ASP.NET Web Optimization Framework Add a new class inside the App_Start folder > BundleConfig.cs Register/group your CSS and JS files the way you want it public class BundleConfig { public static…
-
How to setup conditional emails or webhooks in Episerver
This might not provide the best user experience for authors to setup conditional emails / webhooks but this implementation definitely does not require a humongous effort to cater for the missing feature in the Episerver.Forms module. Problem: At the time of writing, Episerver.Forms does not out-of-the-box provide content editors the ability to set up conditional…
-
The Peer is Not Responding to Phase 1 ISAKMP Requests
I got this error when trying to connect using my VPN client tool (Dell SonicWall Global VPN Client). It fails when I am connected to the internet via our Home broadband (Foxtel) but it connects successfully when I am connected to mobile data hotspot (Vodafone). I found two ways to overcome this error Configure the VPN…
-
Episerver with Azure AD authentication
In this post, I will go through the steps I took to disable the built-in membership provider of Episerver and instead use Azure’s Active Directory authentication. Register your Episerver app within your Azure Active Directory (AD) You will first need to register your app on the Azure AD. Follow this post I created before proceeding to…