Server Error in '/' Application.

End element if did not match content

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Spark.Compiler.CompilerException: End element if did not match content

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[CompilerException: End element if did not match content]
   Spark.Compiler.NodeVisitors.SpecialNodeVisitor.PopSpecial(String name) +344
   Spark.Compiler.NodeVisitors.AbstractNodeVisitor.Accept(IList`1 nodes) +115
   Spark.Parser.Syntax.DefaultSyntaxProvider.GetChunks(VisitorContext context, String path) +390
   Spark.Parser.ViewLoader.LoadInternal(String viewPath) +213
   Spark.Parser.ViewLoader.Load(String viewPath) +242
   Spark.SparkViewEngine.LoadTemplates(ViewLoader loader, IEnumerable`1 templates, ICollection`1 chunksLoaded, ICollection`1 templatesLoaded) +143
   Spark.SparkViewEngine.CreateEntryInternal(SparkViewDescriptor descriptor, Boolean compile) +315
   Spark.SparkViewEngine.CreateEntry(SparkViewDescriptor descriptor) +223
   Spark.Web.Mvc.SparkViewFactory.FindViewInternal(ControllerContext controllerContext, String viewName, String masterName, Boolean findDefaultMaster, Boolean useCache) +583
   Spark.Web.Mvc.SparkViewFactory.FindView(ControllerContext controllerContext, String viewName, String masterName, Boolean useCache) +28
   System.Web.Mvc.<>c__DisplayClass6.<FindView>b__5(IViewEngine e) +45
   System.Web.Mvc.ViewEngineCollection.Find(Func`2 cacheLocator, Func`2 locator) +322
   System.Web.Mvc.ViewResult.FindView(ControllerContext context) +117
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +143
   System.Web.Mvc.<>c__DisplayClass14.<InvokeActionResultWithFilters>b__11() +31
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +436
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +658
   System.Web.Mvc.Controller.ExecuteCore() +143
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +53
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +25
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +602
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4081.0