From 5c778dcff803cb852f74f04d6f8ab1eb96a41974 Mon Sep 17 00:00:00 2001 From: Thomas Hounsell Date: Mon, 3 Aug 2015 11:29:43 +0100 Subject: [PATCH] Limit to Razor View Engine --- BuildFeed/Global.asax.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BuildFeed/Global.asax.cs b/BuildFeed/Global.asax.cs index f173f8b..843fe4f 100644 --- a/BuildFeed/Global.asax.cs +++ b/BuildFeed/Global.asax.cs @@ -10,6 +10,10 @@ public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { + // Don't bother looking for the legacy aspx view engine. + ViewEngines.Engines.Clear(); + ViewEngines.Engines.Add(new RazorViewEngine()); + AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes);