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, ...DDRMenu Throws Error on DNN7DDRMenu Throws Error on DNN7
Previous
 
Next
New Post
4/5/2013 5:44 PM
 

Hi,

I've included the DDR Menu in a skin that has been installed on DNN7.  The skin throws an error stating:

An error has occurred. DotNetNuke.Services.Exceptions.ModuleLoadException: Couldn't load menu style '': System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) at System.Web.HttpServerUtility.MapPath(String path) at DotNetNuke.Web.DDRMenu.TemplateEngine.TemplateDefinition.FromManifest(String manifestUrl) at DotNetNuke.Web.DDRMenu.MenuBase.Instantiate(String menuStyle) ---> System.ApplicationException: Couldn't load menu style '': System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) at System.Web.HttpServerUtility.MapPath(String path) 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 ---

The skin includes the following code:

 <%@ Register TagPrefix="dnn" TagName="MENU" Src="~/DesktopModules/DDRMenu/Menu.ascx" %>

<dnn:MENU runat="server" id="dnnMENU" Provider="DDRMenuNavigationProvider" />

What should I modify to remedy this error?

Thanks,

Sid

 
New Post
4/5/2013 7:35 PM
 
It looks to me that you are missing the MenuStyle attribute.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
4/7/2013 6:47 PM
 

Thanks for your reply.

I modified the Menu to be:

<dnn:MENU runat="server" id="dnnMENU" Provider="DDRMenuNavigationProvider" MenuStyle="SolPartMenu" />

However, the error still persists.  In addition the error, some Javascript has also overlaid the home page.  It is as follows:

(function($) { $.fn.et_switcher = function(options) { var defaults = { slides: '>div', activeClass: 'active', linksNav: '', findParent: true, //use parent elements in defining lengths lengthElement: 'li', //parent element, used only if findParent is set to true useArrows: false, arrowLeft: 'prevlink', arrowRight: 'nextlink', auto: false, autoSpeed: 4000 }; var options = $.extend(defaults, options); return this.each(function() { var slidesContainer = jQuery(this); slidesContainer.find(options.slides).hide().end().find(options.slides).filter(':first').css('display','block'); if (options.linksNav != '') { var linkSwitcher = jQuery(options.linksNav); linkSwitcher.click(function(){ var targetElement; if (options.findParent) targetElement = jQuery(this).parent(); else targetElement = jQuery(this); if (targetElement.hasClass('active')) return false; jQuery('div.item .active').animate({marginTop: '0px'},500,function(){ jQuery(this).removeClass('active'); }); jQuery(this).animate({marginTop: '-15px'},500,function(){ jQuery(this).addClass('active'); }); var ordernum = targetElement.prevAll(options.lengthElement).length; slidesContainer.find(options.slides).filter(':visible').hide().end().end().find(options.slides).filter(':eq('+ordernum+')').stop().fadeIn(700); jQuery('div.#slides div.slide div.banner').css('top', '0px'); slidesContainer.find(options.slides).filter(':visible').children('div').animate({top: '90px'}, 300); if (typeof interval != 'undefined') { clearInterval(interval); auto_rotate(); }; return false; }); }; jQuery('#'+options.arrowRight+', #'+options.arrowLeft).click(function(){ var slideActive = slidesContainer.find(options.slides).filter(":visible"), nextSlide = slideActive.next(), prevSlide = slideActive.prev(); if (jQuery(this).attr("id") == options.arrowRight) { if (nextSlide.length) { var ordernum = nextSlide.prevAll().length; } else { var ordernum = 0; } }; if (jQuery(this).attr("id") == options.arrowLeft) { if (prevSlide.length) { var ordernum = prevSlide.prevAll().length; } else { var ordernum = slidesContainer.find(options.slides).length-1; } }; slidesContainer.find(options.slides).filter(':visible').hide().end().end().find(options.slides).filter(':eq('+ordernum+')').stop().fadeIn(700); if (typeof interval != 'undefined') { clearInterval(interval); auto_rotate(); }; return false; }); if (options.auto) { auto_rotate(); }; function auto_rotate(){ interval = setInterval(function(){ var slideActive = slidesContainer.find(options.slides).filter(":visible"), nextSlide = slideActive.next(); if (nextSlide.length) { var ordernum = nextSlide.prevAll().length; } else { var ordernum = 0; } if (options.linksNav === '') jQuery('#'+options.arrowRight).trigger("click"); else linkSwitcher.filter(':eq('+ordernum+')').trigger("click"); },options.autoSpeed); }; }); } })(jQuery); var $featuredArea = jQuery('#featured #slides'); if ($featuredArea.length) { $featuredArea.et_switcher({ linksNav: '#switcher div div.wrap', auto: false, autoSpeed: 4000, findParent: true, lengthElement: 'div' }); }; jQuery('div.#slides div.active div.banner').css('top', '90px'); Cufon.now(); //]]> -->

I've never seen this before.  Why would the Javascript be visible on the home page?

 
New Post
4/8/2013 2:27 AM
 

i was facing the same issue... 

Copy your menu style folder inside your own portal folder...

 
New Post
4/8/2013 6:59 PM
 
So, I re-installed DDR Menu and set the MenuStyle="DNNMenu". The error has resolved. I am now stuck with the ugly Javascript on my home page:
(function($) { $.fn.et_switcher = function(options) { var defaults = { slides: '>div', activeClass: 'active', linksNav: '', findParent: true, //use parent elements in defining lengths lengthElement: 'li', //parent element, used only if findParent is set to true useArrows: false, arrowLeft: 'prevlink', arrowRight: 'nextlink', auto: false, autoSpeed: 4000 }; var options = $.extend(defaults, options); return this.each(function() { var slidesContainer = jQuery(this); slidesContainer.find(options.slides).hide().end().find(options.slides).filter(':first').css('display','block'); if (options.linksNav != '') { var linkSwitcher = jQuery(options.linksNav); linkSwitcher.click(function(){ var targetElement; if (options.findParent) targetElement = jQuery(this).parent(); else targetElement = jQuery(this); if (targetElement.hasClass('active')) return false; jQuery('div.item .active').animate({marginTop: '0px'},500,function(){ jQuery(this).removeClass('active'); }); jQuery(this).animate({marginTop: '-15px'},500,function(){ jQuery(this).addClass('active'); }); var ordernum = targetElement.prevAll(options.lengthElement).length; slidesContainer.find(options.slides).filter(':visible').hide().end().end().find(options.slides).filter(':eq('+ordernum+')').stop().fadeIn(700); jQuery('div.#slides div.slide div.banner').css('top', '0px'); slidesContainer.find(options.slides).filter(':visible').children('div').animate({top: '90px'}, 300); if (typeof interval != 'undefined') { clearInterval(interval); auto_rotate(); }; return false; }); }; jQuery('#'+options.arrowRight+', #'+options.arrowLeft).click(function(){ var slideActive = slidesContainer.find(options.slides).filter(":visible"), nextSlide = slideActive.next(), prevSlide = slideActive.prev(); if (jQuery(this).attr("id") == options.arrowRight) { if (nextSlide.length) { var ordernum = nextSlide.prevAll().length; } else { var ordernum = 0; } }; if (jQuery(this).attr("id") == options.arrowLeft) { if (prevSlide.length) { var ordernum = prevSlide.prevAll().length; } else { var ordernum = slidesContainer.find(options.slides).length-1; } }; slidesContainer.find(options.slides).filter(':visible').hide().end().end().find(options.slides).filter(':eq('+ordernum+')').stop().fadeIn(700); if (typeof interval != 'undefined') { clearInterval(interval); auto_rotate(); }; return false; }); if (options.auto) { auto_rotate(); }; function auto_rotate(){ interval = setInterval(function(){ var slideActive = slidesContainer.find(options.slides).filter(":visible"), nextSlide = slideActive.next(); if (nextSlide.length) { var ordernum = nextSlide.prevAll().length; } else { var ordernum = 0; } if (options.linksNav === '') jQuery('#'+options.arrowRight).trigger("click"); else linkSwitcher.filter(':eq('+ordernum+')').trigger("click"); },options.autoSpeed); }; }); } })(jQuery); var $featuredArea = jQuery('#featured #slides'); if ($featuredArea.length) { $featuredArea.et_switcher({ linksNav: '#switcher div div.wrap', auto: false, autoSpeed: 4000, findParent: true, lengthElement: 'div' }); }; jQuery('div.#slides div.active div.banner').css('top', '90px'); Cufon.now(); //]]> --> HomeBrowse Real EstateBuyingSellingFinanceOur TeamBlogForumContact UsMy LookupDynamic RegistrationDynamic LoginLookup Realty TeamMLS UpdatesListing DetailsModTest2Property InspectionForgot PasswordLoginSan Diego SpecialistsCategoryCareersnew-agent-signupclosing-surveysdlookup-com-property-search-surveysdlookup-inquiry-surveyTestWikiManage Email PreferencesSan DiegoBackEndTerms of UsePrivacy PolicyContact Lookup RealtyDynamic Forms

There are script tag references to an empty skins.js file and the following at the bottom of the ascx:





Would any of these be causing this screen output?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DDRMenu Throws Error on DNN7DDRMenu Throws Error on DNN7


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