'LicensingPage' already in route collection
After registering a newly created module into a local trial Sitefinity site, I browsed to my local site again and received the following 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. |
|
Hmmm... Okay. This seems to happen if a make a reference from the SiteFinity web application to my custom module project. Am I not allowed to make references to other projects from the Sitefinity web app?
Hello Lorne,
Thank you for reporting this issue.
Adding a reference to a custom module should not cause such error. However, if in the Initialize() or Install() methods of your module class you have a code which somehow invokes soft restart of the application, this exception could be thrown.
Is it possible for you to send us your custom module implementation so we could investigate the problem further?
Kind regards,
Vlad
the Telerik team
Hello Lorne,
Actually, if there is an error in the module installation, it should be handled and logged in the Log file. The reported from you error is a bug in our system and will try to avoid it. However, as we are not able to reproduce it, it will be helpful if you send us your custom module implementation - just to make sure that we will address the issue.
Thanks,
Vlad
the Telerik team
Is this issue addressed... I just installed a new module and I get the same error
A route named 'LicensingPage' is already in the route collection. Route names must be unique.
Parameter name: name
I've also run into this problem now using the JobsModule. Haven't changed anything to the JobsModule project other than trying to add to sitefinity.
Making some modifications to the SystemConfig.config seems to get me going again.
This was the original line in the config while I was experiencing the problem:
<
add
title
=
"Jobs"
description
=
""
resourceClassId
=
""
type
=
"Jobs.JobsModule"
startupType
=
"OnFirstCall"
name
=
"Jobs"
/>
Hello,
It has been reported by other users that the problem is coming from this line of code:
App.WorkWith().Page().PageManager.Provider.SuppressSecurityChecks = true;