If you have installed Umbraco via Nuget, it is likely that the sites global.asax might not be set-up correctly. If you want to trigger some custom code on application start-up and your global.ascx is never being hit, then read on! In today's guide, I'm going to cover how to enable it in a few simple steps.
In case you don't know how to install Umbraco, then I suggest you read this article, Installing Umbraco 7 In Visual Studio Via Nuget
<%@ Application Inherits="Umbraco.Web.UmbracoApplication" Language="C#" %>
<%@ Application Codebehind="Global.asax.cs" Inherits="SampleSite.MvcApplication" Language="C#" %>
public class MvcApplication : Umbraco.Web.UmbracoApplication
protected void Application_Start()
Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge