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, ...Problems with TreeViewProblems with TreeView
Previous
 
Next
New Post
7/20/2007 4:32 AM
 

Hello everibody,

I'm trying to create a simple skin. I've copied and modified the files of the DNN- Blue skin. The files I have copied are:

  • skin.css
  • skin.xml
  • Vertical Menu-Fixed Width.htm

I've done some simple change to these files and I've add my personal image files.

Then I have packaged all these files in a zip folder. I've uploaded the skin, and no error is appeared. But when I tried to select the skin as the current skin I gave this error:

Server Error in '/DotNetNuke_2' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /DotNetNuke_2/Default.aspx

and in the address bar there is: http://localhost/DotNetNuke_2/Default.aspx?tabid=201&error=The+Controls+collection+cannot+be+modified+because+the+control+contains+code+blocks+(i.e.+%3c%25+...+%25%3e).&content=0 

I have also tried to package the original files of the skin (Vertical Menu - Fixed Width.htm, Vertical Menu - Fixed Width.jpg, skin.css, skin.xml, gradient_LtBlue.jpg, gradient_DKBlue.jpg, breadcrumb.gif). But when I tried to apply this skin I've got this error:

An error has occurred.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Skins.Controls.TreeViewMenu.BuildTree(DNNNode objNode, Boolean blnPODRequest) in C:\DotNetNuke_2\Website\Admin\Skins\TreeViewMenu.ascx.vb:line 309 at DotNetNuke.UI.Skins.Controls.TreeViewMenu.Page_Load(Object sender, EventArgs e) in C:\DotNetNuke_2\Website\Admin\Skins\TreeViewMenu.ascx.vb:line 422 --- End of inner exception stack trace ---

So, I'm very confused.

Can anyone please help me? I've forgotten to insert some file in the package folder? Why packaging the original files the skin doesn't work? It seems very strange....

Thank you!

 

 
New Post
8/7/2007 8:59 PM
 

I am having the exact same problem!  I tried to switch the [SOLPARTMENU] in my html skin to use the [TREEVIEW] instead and I got the same error.

After doing some searching on the net, I've noticed that many people say to use [TREEVIEWMENU] (note the MENU part added).  But doing that only gives a parsing error of "Token not found: [TREEVIEWMENU]"

When I go back and shorten the token again to [TREEVIEW] I get this error instead:

  • Processing token: [TREEVIEW]
  • Token is skin object: Admin/Skins/TreeViewMenu.ascx
  • Token NOT found in attributes file: [TREEVIEW]
  • Formatting control statement: <dnn:TREEVIEW runat="server" id="dnnTREEVIEW" />
  • I don't know what "Token NOT found in attributes file means.
    I did get it to work by editing the default.aspx file of my skin where I added this line to insert the menu:

    "<dnn:TREEVIEW runat="server" id="dnnTREEVIEW" bodyCssClass="Normal" CssClass="TreeViewMenu" headerCssClass="TreeViewMenu_Header" headerTextCssClass="Head" level="root" nowrap="true" treeIndentWidth="5" />". 

    I also had to add this line to the top of the file:
    <%@ Register TagPrefix="dnn" TagName="TREEVIEW" Src="~/Admin/Skins/TreeViewMenu.ascx" %>

    I think there is something broken between the TREEVIEW token and the TREEVIEWMENU settings.

    I hope someone can help us with this problem.

     
    New Post
    8/9/2007 4:59 AM
     
    I also have this problem. After having inserted the treeviewmenu to my skin file I got this error:

    AssemblyVersion: 04.05.03
    UserName: admin
    ActiveTabID: 133
    ActiveTabName: test
    DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
    ExceptionGUID: d62dd58b-1442-4bab-ba60-4a382fdcdf05
    InnerException: Object reference not set to an instance of an object.
    FileName:
    FileLineNumber: 0
    FileColumnNumber: 0
    Method: DotNetNuke.UI.Skins.Controls.TreeViewMenu.BuildTree
    StackTrace:
    Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Skins.Controls.TreeViewMenu.BuildTree(DNNNode objNode, Boolean blnPODRequest) at DotNetNuke.UI.Skins.Controls.TreeViewMenu.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
    Source:

    Is this a known issue?
     
    New Post
    8/14/2007 3:48 AM
     

    Hello everybody,

    I've solved the problem. I have used the token [TREEVIEW] (not [TREEVIEWMENU]) and I have added this code to the file skin.xml (I have copied the attributes from the user control "Vertical Menu-Fixed Width.ascx"):

    <Object>
        <Token>[TREEVIEW]</Token>
        <Settings>
          <Setting>
            <Name>bodyCssClass</Name>
            <Value>Normal</Value>
          </Setting>
          <Setting>
            <Name>CssClass</Name>
            <Value>TreeViewMenu</Value>
          </Setting>
          <Setting>
            <Name>headerCssClass</Name>
            <Value>TreeViewMenu_Header</Value>
          </Setting>
          <Setting>
            <Name>headerTextCssClass</Name>
            <Value>Head</Value>
          </Setting>
          <Setting>
            <Name>nowrap</Name>
            <Value>true</Value>
          </Setting>
          <Setting>
            <Name>treeIndentWidth</Name>
            <Value>5</Value>
          </Setting>
          <Setting>
            <Name>level</Name>
            <Value>root</Value>
          </Setting>
        </Settings>
     </Object>

     I think the error  was due to the fact that some attributes (at least one) of the TREEVIEW haven't a default value, and this cause the problem.

    I'm not sure of this, but now I've a working treeview!

    I hope you will solve the problem too.

     

     
    New Post
    9/16/2007 8:17 AM
     

    Hello Guys,

    The TREEVIEW property which doesn't have a default value is "level":

    <dnn:TREEVIEW runat="server" ID="dnnTREEVIEW" Visible="true" level="root"></dnn:TREEVIEW>


     

     
    Previous
     
    Next
    HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Problems with TreeViewProblems with TreeView


    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