locked
Site Map RRS feed

  • Question

  • User-867221238 posted

    I can't figure out how to add a new link at the top of the site.  I want to add a forums page to the site but everytime that I add the line I get a config error.

     

    Please help by letting me know which file I need to edit.

     

    Thanks

    Chris 

    Monday, October 29, 2007 2:32 PM

Answers

  • User-1705717250 posted

    Setup the directory as an application(virtual directory) in IIS or the web host's control panel.

    Hope this helps

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 30, 2007 11:34 AM
  • User-867221238 posted

     Thanks... Turns out the host is having problems with their server.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 30, 2007 12:33 PM

All replies

  • User-1489493332 posted

    You can start by looking into web.sitemap

    Monday, October 29, 2007 6:20 PM
  • User-867221238 posted

     Well i tried that and everytime i change anything i get a error message.

     

    Here is what it looks like....

    ?xml version="1.0" encoding="utf-8" ?>
    <siteMap>
        <siteMapNode title="Home" url="Default.aspx">
            <!--<siteMapNode title="Resume" url="Resume.aspx" />-->
            <!--<siteMapNode title="Links" url="Links.aspx" />-->
            <siteMapNode title="Gallery" url="AlbumCategories.aspx" >
          <siteMapNode title="Albums" url="Albums.aspx">
                      <siteMapNode title="Photos" url="Photos.aspx" >
                          <siteMapNode title="Details" url="Details.aspx" />
                      </siteMapNode>
              </siteMapNode>
            </siteMapNode>
            <siteMapNode title="Guestbook" url="my_gbk.aspx" />
            <siteMapNode title="Downloads" url="Downloads/Downloads.aspx" />
            <siteMapNode title="Register" url="Register.aspx" />
            <siteMapNode title="Manage" url="Admin/Manage.aspx" >
                <siteMapNode title="Albums" url="Admin/Albums.aspx" >
                    <siteMapNode title="Photos" url="Admin/Photos.aspx" >
                        <siteMapNode title="Details" url="Admin/Details.aspx" />
                    </siteMapNode>
                </siteMapNode>
                <siteMapNode title="Album Categories" url="Admin/AlbumCategories.aspx" />
                <siteMapNode title="Site Settings" url="Admin/SiteSettings.aspx" />
                <siteMapNode title="Users" url="Admin/Users.aspx" />
            </siteMapNode>
        </siteMapNode>
    </siteMap>

     

    Where would I put it? 

    Monday, October 29, 2007 6:50 PM
  • User2069888697 posted

     The above sitemap works fine if I plug it into my test site.  Can you either post the one giving the error or give more detail on the error you are recieving?

    Tuesday, October 30, 2007 7:29 AM
  • User2069888697 posted

     This would add a Forum to the menu with forum.aspx being the link

    <siteMap>
    <siteMapNode title="Home" url="Default.aspx">
    <siteMapNode title="Forum" url="Forum.aspx" />
    <!--<siteMapNode title="Resume" url="Resume.aspx" />-->
    <!--<siteMapNode title="Links" url="Links.aspx" />-->
    <siteMapNode title="Gallery" url="AlbumCategories.aspx" >
    <siteMapNode title="Albums" url="Albums.aspx">
    <siteMapNode title="Photos" url="Photos.aspx" >
    <siteMapNode title="Details" url="Details.aspx" />
    </siteMapNode>
    </siteMapNode>
    </siteMapNode>
    <siteMapNode title="Guestbook" url="my_gbk.aspx" />
    <siteMapNode title="Downloads" url="Downloads/Downloads.aspx" />
    <siteMapNode title="Register" url="Register.aspx" />
    <siteMapNode title="Manage" url="Admin/Manage.aspx" >
    <siteMapNode title="Albums" url="Admin/Albums.aspx" >
    <siteMapNode title="Photos" url="Admin/Photos.aspx" >
    <siteMapNode title="Details" url="Admin/Details.aspx" />
    </siteMapNode>
    </siteMapNode>
    <siteMapNode title="Album Categories" url="Admin/AlbumCategories.aspx" />
    <siteMapNode title="Site Settings" url="Admin/SiteSettings.aspx" />
    <siteMapNode title="Users" url="Admin/Users.aspx" />
    </siteMapNode>
    </siteMapNode>
    </siteMap>
      
    Tuesday, October 30, 2007 7:37 AM
  • User-867221238 posted

     I add as per last post and I get this error

     

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

    Source Error:

    Line 16: 			<assemblies>
    Line 17: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
    Line 18: <authentication mode="Forms">
    Line 19: <forms loginUrl="Login.aspx" protection="Validation" timeout="300"/>
    Line 20: </authentication>

    Source File: \\shared.hosting.local\nfs\cust\4\29\98\789924\web\ssg\web.config    Line: 18

    Tuesday, October 30, 2007 10:57 AM
  • User-1705717250 posted

    Setup the directory as an application(virtual directory) in IIS or the web host's control panel.

    Hope this helps

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 30, 2007 11:34 AM
  • User-867221238 posted

     Thanks... Turns out the host is having problems with their server.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 30, 2007 12:33 PM