Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DDR Menu + Razor on DNN 7DDR Menu + Razor on DNN 7
Previous
 
Next
New Post
11/18/2012 7:07 AM
 

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.

 
New Post
11/28/2012 12:38 PM
 
Hi,

I have exactly the same problem that you described, in DNN 7.0.0. Anyone knows how to fix this? Are there any DDRMenu Templates for DNN 7?
 
New Post
11/28/2012 12:41 PM
 
Sorry. Can someone please remove my (duplicate) posts? The website was not responding, so I thought it wasn't saved.
 
New Post
11/28/2012 12:45 PM
 
Done..
 
New Post
11/29/2012 9:19 AM
 
Raphael Müller wrote:
Hi,

I have exactly the same problem that you described, in DNN 7.0.0. Anyone knows how to fix this? Are there any DDRMenu Templates for DNN 7?

 I had the same issue, and frankly gave up.  My solution was simply to convert my Razor code to xslt. Thankfully I only had one to do, and it just took a few hours. I had originally avoided xslt because it seemed very non-intuitive.  My opinion hasn't changed, it's a 'write only' technology.

David

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DDR Menu + Razor on DNN 7DDR Menu + Razor on DNN 7


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out