Hello,
Thank you for the reply.
Unfortunally I still cant get it to work.
I used the tool Lutz Roeder’s .NET Reflector as u suggested and indeed if I look in the assembly I see all the attributes.
Great tool btw.
Code:
Namespace TimRolands.DNN.SkinObjects.HouseMenuSkinObject
Public MustInherit Class HouseMenuSkinObject
Inherits SkinObjectBase
Declaring Type: TimRolands.DNN.SkinObjects.HouseMenuSkinObject.HouseMenuSkinObject
Assembly: TimRolands.DNN.SkinObjects.HouseMenuSkinObject, Version=1.0.0.17185
Name: TimRolands.DNN.SkinObjects.HouseMenuSkinObject.HouseMenuSkinObject
Assembly: TimRolands.DNN.SkinObjects.HouseMenuSkinObject, Version=1.0.0.17185
Private _scope As Integer
I even took it a step further.
I was using the latest version off DNN 4.7.0 and made an clean install with the oldest version I could find, 4.5.5. Now using both.
Aside from the guidelines in your book: (witch I did over and over again)
I took a Gray skin html file form de default install, along with the css and xml files.
Made a new folder and pasted them
I replaced the [NAV] token for a [HOUSEMENU] token in the *.htm ( readme file house menu) file,
Added the referral to token in the xml (including the attributes.)
Made a new zip for skin upload.
Installed the housemenu version as we discussed above. (good clean install according to dnn)
Did a restart application..
In Visual Studio ensured the files where in place.
Installed the new skin with the [HOUSEMENU] token.
Install log finds the token and ads it nicely to the new ascx file. (no errors)
Overview:
Code:
Install Skin:: TESTSKIN
Info::
Info:: Begin processing zip file : TESTSKIN
Info:: Creating directory: C:\projects\DotNetNuke Website18\Portals\_default\Skins\TESTSKIN
Info:: Writing file: skin.xml
Info:: Writing file: Horizontal Menu - Fixed Width.htm
Info:: Writing file: skin.css
Info:: End processing zip file : TESTSKIN.zip
…..
Info:: Loading skin object for token HOSTNAME: Admin/Skins/HostName.ascx
Info:: Loading skin object for token HOUSEMENU: DesktopModules/HouseMenuSkinObject/HouseMenuSkinObject.ascx
……
Info:: Processing token: [HOUSEMENU]
Info:: Token is skin object: DesktopModules/HouseMenuSkinObject/HouseMenuSkinObject.ascx
Info:: Token found in attributes file: [HOUSEMENU]
Info:: Formatting token attribute: Scope="-1"
Info:: Formatting token attribute: ShowAdmin="True"
Info:: Formatting token attribute: IsRecursive="True"
Info:: Formatting token attribute: Orientation="H"
Info:: Formatting token attribute: Mode="D"
Info:: Formatting token attribute: StyleName="Gray"
Info:: Formatting control statement: <dnn:HOUSEMENU runat="server" id="dnnHOUSEMENU" Scope="-1" ShowAdmin="True" IsRecursive="True" Orientation="H" Mode="D" StyleName="Gray" />
Info:: Processing token: [SEARCH]
…..
Info:: Formatting registration directive: <%@ Register TagPrefix="dnn" TagName="HOUSEMENU" Src="~/DesktopModules/HouseMenuSkinObject/HouseMenuSkinObject.ascx" %>
Info:: Writing file: Horizontal Menu - Fixed Width.ascx
Info:: End processing file : Horizontal Menu - Fixed Width.htm
Info::
Info:: Begin processing file : skin.css
Info:: Writing file: skin.css
Info:: End processing file : skin.css
Info::
Info:: End processing skin/container files : Skins :: TESTSKIN
Server Name: WORKSTATION
Code:
Tab updated:
TabID: 54
PortalID: 0
TabName: housemenu
Title:
Description:
KeyWords:
Url:
ParentId: -1
IconFile:
IsVisible: True
SkinSrc: [G]Skins/TESTSKIN/Horizontal Menu - Fixed Width.ascx
ContainerSrc:
Server Name: WORKSTATION
A copy code from dnn install from the ascx file:
Code:
<%@ Register TagPrefix="dnn" TagName="HOUSEMENU" Src="~/DesktopModules/HouseMenuSkinObject/HouseMenuSkinObject.ascx" %>
<dnn:HOUSEMENU runat="server" ID="dnnHOUSEMENU" Scope="-1" ShowAdmin="True" IsRecursive="True" Orientation="H" Mode="D" StyleName="Gray" />
I still get the same error.
* = / Scope / ShowAdmin / IsRecursive / Orientation / Mode / StyleName /
Validation (ASP.Net): Attribute ‘*’ Is not a valid attribute of element ‘HOUSEMENU’.
I did well over 20 clean installs on 3 computers.
With both versions even did a reinstall of ASP and Visual studio.
OS: Windows XP Pro (IIS v5.1) and Windows Server 2003 webedition (IIS v6.0)
I find this mind boggling because I absolutely believe that this should work as even dnn installs the attributes correct according to the logs.
With Regards,
Concepts