I'm trying to get a custom DDR Menu style working on DNN 7 RC release.
Using a custom .cshtml as simple as described on the wiki or in the DDR Menu samples failes with the following error:
An error has occurred. DotNetNuke.Services.Exceptions.ModuleLoadException: Couldn't load menu style 'Bootstrap': System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Web.HttpCompileException: d:\3rdparty_projects\kudu\apps\dnnportal3\site\wwwroot\Portals\_default\Skins\Unicorn\Bootstrap\Bootstrap.cshtml(2): error CS0103: The name 'Model' does not exist in the current context at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) at System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath virtualPath) at DotNetNuke.Web.DDRMenu.Razor.GetWebPage(String virtualPath) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at DotNetNuke.Web.DDRMenu.TemplateEngine.RazorTemplateProcessor.LoadDefinition(TemplateDefinition baseDefinition) at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromManifest(String manifestUrl) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) --->
When I change or remove the reference to the 'Model' property, the error becomes:
An error has occurred. DotNetNuke.Services.Exceptions.ModuleLoadException: Couldn't load menu style 'Bootstrap': System.ApplicationException: Can't find processor for manifest D:\3rdparty_projects\kudu\apps\dnnportal3\site\wwwroot\Portals\_default\Skins\Unicorn\Bootstrap\Bootstrap-menudef.xml at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromManifest(String manifestUrl) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) ---> System.ApplicationException: Couldn't load menu style 'Bootstrap': System.ApplicationException: Can't find processor for manifest D:\3rdparty_projects\kudu\apps\dnnportal3\site\wwwroot\Portals\_default\Skins\Unicorn\Bootstrap\Bootstrap-menudef.xml at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromManifest(String manifestUrl) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) at DotNetNuke.Web.DDRMenu.SkinObject.OnPreRender(EventArgs e) --- End of inner exception stack trace ---
Is this a bug in DNN 7 RC release? Or DDR Menu not compatible with WebPages 2.0? Will it be fixed before final?
Can I fix this now? Because I cannot express the menu style with tokens, and I don't (want to) know xslt.