Not supported engine for '.cshtml'

Aug 25, 2011 at 9:08 AM

http://online.kooboo.com/dev~sonce/Blog
Stack Trace

[NotSupportedException: Not supported engine for '.cshtml']
   Kooboo.CMS.Sites.View.TemplateEngines.GetEngineByFileExtension(String fileExtension) in E:\Projects\Kooboo\src\branches\3.0.3\Kooboo.CMS\Kooboo.CMS.Sites\View\TemplateEngines.cs:62
   Kooboo.CMS.Sites.View.FrontHtmlHelper.RenderViewInternal(HtmlHelper htmlHelper, String viewPath, ViewDataDictionary viewData, Object model) in E:\Projects\Kooboo\src\branches\3.0.3\Kooboo.CMS\Kooboo.CMS.Sites\View\FrontHtmlHelper.cs:259
   Kooboo.CMS.Sites.View.FrontHtmlHelper.RenderContentPosition(ContentPosition contentPosition) in E:\Projects\Kooboo\src\branches\3.0.3\Kooboo.CMS\Kooboo.CMS.Sites\View\FrontHtmlHelper.cs:194
   Kooboo.CMS.Sites.View.<RenderPositionContents>d__7.MoveNext() in E:\Projects\Kooboo\src\branches\3.0.3\Kooboo.CMS\Kooboo.CMS.Sites\View\FrontHtmlHelper.cs:81
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +472
   Kooboo.CMS.Sites.Web.AggregateHtmlString..ctor(IEnumerable`1 htmlStrings) in E:\Projects\Kooboo\src\branches\3.0.3\Kooboo.CMS\Kooboo.CMS.Sites\Web\AggregateHtmlString.cs:20
   Kooboo.CMS.Sites.View.FrontHtmlHelper.Position(String positionID) in E:\Projects\Kooboo\src\branches\3.0.3\Kooboo.CMS\Kooboo.CMS.Sites\View\FrontHtmlHelper.cs:56

[MethodInvocationException: Invocation of method 'Position' in  Kooboo.CMS.Sites.View.FrontHtmlHelper threw exception System.NotSupportedException : Not supported engine for '.cshtml']
   NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context) +1970
   NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context) +777
   NVelocity.Runtime.Parser.Node.ASTReference.Render(IInternalContextAdapter context, TextWriter writer) +84
   NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer) +88
   NVelocity.Template.Merge(IContext context, TextWriter writer) +205
   Kooboo.CMS.Sites.TemplateEngines.NVelocity.MvcViewEngine.NVelocityView.Render(ViewContext viewContext, TextWriter writer) in E:\Projects\Kooboo\src\branches\3.0.3\Kooboo.CMS\Kooboo.CMS.Sites.TemplateEngines.NVelocity\MvcViewEngine\NVelocityView.cs:138
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380
   Kooboo.CMS.Sites.View.FrontViewResult.ExecuteResult(ControllerContext context) in E:\Projects\Kooboo\src\branches\3.0.3\Kooboo.CMS\Kooboo.CMS.Sites\View\FrontViewResult.cs:30
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +33
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +691
   System.Web.Mvc.Controller.ExecuteCore() +162
   Kooboo.CMS.Sites.Controllers.Front.FrontControllerBase.ExecuteCore() in E:\Projects\Kooboo\src\branches\3.0.3\Kooboo.CMS\Kooboo.CMS.Sites\Controllers\Front\FrontControllerBase.cs:111
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +305
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +62
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +20
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +453
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +371

Coordinator
Aug 26, 2011 at 1:27 AM

The online kooboo cms service site does not support the razor engine, it only support nvelocity.