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

Forums / General Discussions / Problems renaming a page

Problems renaming a page

6 posts, 0 answered
  1. Pik Lee
    Pik Lee avatar
    142 posts
    Registered:
    13 Aug 2012
    15 Apr 2010
    Link to this post
    After I rename a page and then revisit the page, I received the following error. The address bar still shows the old url instead of the new url. Is this something to do with the web.config file setting? How do I prevent this?

    Thanks,
    Pik


    An item with the same key has already been added.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentException: An item with the same key has already been added.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ArgumentException: An item with the same key has already been added.]
       System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +48
       System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +229
       System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) +22
       Telerik.Cms.Web.CmsSiteMapProvider.CacheNode(ICmsPage page, CmsSiteMapNode parentNode) +706
       Telerik.Cms.Web.CmsSiteMapProvider.GetUrlContext(String url, Boolean skipSvcs, Boolean skipMappingService) +989
       Telerik.Cms.Web.CmsSiteMapProvider.GetUrlContext(String url, Boolean skipSvcs) +15
       Telerik.Cms.Web.UrlHelper.GetUrl(String url, Boolean skipSvcs) +44
       Telerik.Cms.Web.CmsHttpModule.BeginRequest(Object sender, EventArgs e) +2584
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
    
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Apr 2010
    Link to this post
    Hello Pik Lee,

    if you restart the application right after the page is renamed and then try to access it does the problem appear again? Can you tell us the exact steps you follow before you get the message - where you click - on the backend RadTreeNode or you access a public link?

    All the best,
    Ivan Dimitrov
    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. Pik Lee
    Pik Lee avatar
    142 posts
    Registered:
    13 Aug 2012
    15 Apr 2010
    Link to this post
    Thanks for the reply.

    I refresh the main page and then click on the RadTreeNode. Do I need to restart application thru iis everytime I rename a page?

    Thanks,
    Pik
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Apr 2010
    Link to this post
    Hello Pik Lee,

    Default behavior does not require to restart the application. Most probably you have clicked on the node before the load request/response has been completed.

    Kind regards,
    Ivan Dimitrov
    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.
  5. Pik Lee
    Pik Lee avatar
    142 posts
    Registered:
    13 Aug 2012
    16 Apr 2010
    Link to this post
    Thanks for the reply. It happen also when I changed the page's anonymous access from Allow to Deny. I clear the cache in the browser and restart a new browser. The restricted page is still can be seen after I changed the access from allow to deny. The issue go away after I restart iis. Any idea why? How do I prevent this?

    Thanks,
    Pik

  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    16 Apr 2010
    Link to this post
    Hi Pik Lee,

    We are not able to reproduce this error locally. The stack does not have enough information to let you know what the exact problem is.

    All the best,
    Ivan Dimitrov
    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.
Register for webinar
6 posts, 0 answered