+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / SiteFinity 3.7 SiteMap control not working in NET4.0

SiteFinity 3.7 SiteMap control not working in NET4.0

4 posts, 0 answered
  1. Sergio
    Sergio avatar
    2 posts
    Registered:
    31 Jan 2011
    02 Feb 2011
    Link to this post
    Hello all,

    we've just upgraded to .NET 4 our SF 3.7 and noticed that the RadTreeView SiteMap control, on SiteFinity->Admin->Pages, is not maintaining the selected node and neither updating the pages list.
    If we test the exact same code on a server with .NET 3.5 or 2.0, everything works fine.
    Apart from that, i haven't noticed any other problem....
    Is this a known issue? How can i solve?

    Thanks in advance

    Sergio
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    03 Feb 2011
    Link to this post
    Hello Sergio,

    The problem is that when you change the client ID mode the ID of the runat server form which is aspnetForm is automatically changed to form1. This breaks java script on the page which needs to get the form by its ID. You can set the ClientIDMode in the master page if your public page is in live mode:
    <script runat="server">
        protected override void OnInit(EventArgs e)
        {
             base.OnInit(e);
             Telerik.Cms.Web.CmsPageBase cmsPage = this.Page as Telerik.Cms.Web.CmsPageBase;
             if (cmsPage.PageMode == Telerik.Cms.Web.CmsPageMode.Live)
             {
                ClientIDMode=System.Web.UI.ClientIDMode.Predictable;
             }
        }
        protected void Page_Load()
        {
            Response.Write(ClientIDMode.ToString());
        }
    </script>

    Make sure that you have this in the web.config:
    <pages clientIDMode="AutoID" controlRenderingCompatibilityVersion="3.5">



    Regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Sergio
    Sergio avatar
    2 posts
    Registered:
    31 Jan 2011
    03 Feb 2011
    Link to this post
    thanks for your reply.

    in fact, the web.config was alreay set as :

    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
    and even though, the problem occured.

    I did find the problem, though, which is kind of odd.
    Initially IIS (5.0 for testing/dev, but also IIS7.0 on Win2k8) was set for authentication mode as "Anonymous", and the problem i mentioned on my 1st post does occur.

    If i set security on IIS5.0 to "Integrated Windows authentication" AND "Digest authentication for Windows domain server" to ON and set "Anonymous Access to OFF",  the problem does not occur, i can click on each node of the SiteMap's Treeview control that the pages list will update correctly.

    The problem also does NOT occur if is switch off "Digest authentication for Windows domain server".

    We use impersonate :

    <identity impersonate="true" userName="develop\epdevelopment" password="*****"/>

    could this be a problem? it doesn't make much sense, i guess....

    Sergio
  4. Kiran
    Kiran avatar
    12 posts
    Registered:
    14 Sep 2010
    22 Jun 2011
    Link to this post
    Hi

    We have a user control for showing navigation links based on the sitemap. This is working fine in our local environment without any issues. But we have noticed a problem consistently on our production environment. The problem is, if we make any changes/deletions/additions to pages in sitefinity those changes are not immediately reflected in the sitemap and so the user control is not showing the updated navigation links. If we restart the IIS then the the changes in sitemap will be reflected.

    But in my local environment I don't see this behavior. I see the changes are reflected immediately in the website navigation (user control).

    I want the sitemap to be reflected without having to restart the IIS. Please help me to resolve this issue.

    Thanks,
    Kiran
Register for webinar
4 posts, 0 answered