protected void Application_Start(object sender, EventArgs e) { var engine = new SparkViewEngine { ViewFolder = new FileSystemViewFolder(Server.MapPath("~/Views")) }; Application["ViewEngine"] = engine; engine.LoadBatchCompilation(Assembly.Load("MediumTrustHosting.Views")); }