More in this section

Forums / General Discussions / 'LicensingPage' already in route collection

'LicensingPage' already in route collection

7 posts, 0 answered
  1. Kristian
    Kristian avatar
    5 posts
    Registered:
    30 Nov 2010
    29 Dec 2010
    Link to this post
    After registering a Jobs module into a local trial sitefinity 4.0 RC2 site, I browsed to my local site again and received the following error:

    Server Error in '/' Application.

    A route named 'LicensingPage' is already in the route collection. Route names must be unique.
    Parameter name: name


  2. Trevor
    Trevor avatar
    17 posts
    Registered:
    18 Nov 2010
    29 Dec 2010
    Link to this post
    Hi Kristian,

    Just saw your thread after I posted in another I found. Just in case you want to keep an eye on that one as well:
    LicensingPage Thread.

    Happy holidays.
  3. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    31 Dec 2010
    Link to this post
    Hi Kristian and Trevor,

    This problem seems to be related with the Jobs module. We will inspect what is causing this and fix the issue for our upcoming releases.

    Kind 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
  4. John Tolar
    John Tolar avatar
    87 posts
    Registered:
    07 May 2003
    31 Dec 2010
    Link to this post
    I have mainly seen this when a custom module causes the SystemManger to reload. It is not only in the Jobs module. I get this error when a new module is loaded and the 
    App.WorkWith().Page().PageManager.Provider.SuppressSecurityChecks = true
    
    line is present.
  5. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    31 Dec 2010
    Link to this post
    Hello John,

    Thank you for the clarification.

    This line is required to be used because when the module is initializing there is no current user in the context of which the code should execute. Otherwise you would get security exceptions. We will investigate what is causing these issues when you suppress security checks.

    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
  6. John Tolar
    John Tolar avatar
    87 posts
    Registered:
    07 May 2003
    31 Dec 2010
    Link to this post
    I haven't looked into it further, but my guess is that the Route collection isn't being cleared prior to the restart. Maybe has something to do with the the RestartApplication when not doing a full restart or SystemManager.RestartApplication(false); I guess trying a full restart a few times and see if this error still happens. 

    Just thinking through it. I'm a programmer, thats what we do... :)

  7. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    03 Jan 2011
    Link to this post
    Hello John,

    We have done some further investigation of the issue.

    The problem in the Jobs module is caused because it tries to create custom fields for the Documents module in the installation of the module. Then this module calls a method from the Fluent API which forces a restart of the application. With this restart the Sitefinity boot-strapper is run again and tries to go into the section for adding the route handlers.

    With some new changes in the Sitefinity API restarts of the application should not be made in the installation of a module. The restart should be done by the system initializer. We are re-factoring the code in the sample module so that it does not restart the system when the module is being installed.


    Kind 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
7 posts, 0 answered