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, ...CouldnCouldn't Load MenuStyle Superfish
Previous
 
Next
New Post
11/8/2012 12:38 PM
 
Yet another 3-4 year old, dead-end thread. Since I am getting a similar error with a 6.2 custom skin, I will post my issue here and see if we can put closure on it.

I have a custom skin which I am using for some pages, which is working fine, but when I attempt to add the same menu which is working fine in a default site skin, included in the 6.2 installation (DarkKnight - Home-Standard-Menu.ascx), I get the error.

Here is the code I added to the custom skin to include the menu:

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

<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>

<div id="Header">
        <div id="ContentBG">
            <div id="ControlPanelWrapper">
                <dnn:CONTROLPANEL runat="server" id="cp"  IsDockable="True" />
            </div>
            <div class="Content">
                <div id="Nav">
                    <dnn:MENU ID="MENU2" MenuStyle="DNNStandard" runat="server"></dnn:MENU>
                </div>
                <dnn:SEARCH ID="dnnSearch" runat="server" UseDropDownList="true" EnableTheming="true" Submit="Search" />
            </div>
        </div>
    </div>

Here is the error I get:

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

Additional notes:

The identical lines of code work fine in the DarkKnight- Home-Standard-Menu.ascx skin, but fail in the custom skin.
The custom skin works fine, but fails if I add the code for the menu as shown above.
The custom skin is located in its own folder, parallel to the DarkKnight folder under the Skins folder, as shown here:
DarkKnight folder: Portals\_default\Skins\DarkKnight
Custom skin folder: Portals\_default\Skins\Website
The site default skin (Portals\_default\Skins\DarkKnight\Home-Standard-Menu.ascx), located in the DarkKnight skin folder works fine, but the custom skin (Portals\_default\Skins\Website\home.ascx) located in the Website skin folder, only fails when the code is changed to include the same menu as the one used by the DarkKnight\Home-Standard-Menu.ascx skin.
I have double checked all of the IIS and server/folder permissions as well.

Could someone please help me figure out how to include the same menu as is used by the site default skin, but in a custom skin used for a few pages.

Thank you.
 
New Post
11/9/2012 4:03 PM
 

Hi

You need to copy over the dnnstandard folder from the darknight folder as well  this holds the template to build up your menu. That's what the error is telling you.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CouldnCouldn't Load MenuStyle Superfish


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