I have an Orchard instance running on my machine with 4 tenants. Two of these has the module called OrchardHUN.ExternalPages enabled which has an IRouteProvider implementation which leads to the following exception and causes one of the tenants failing
2013-04-15 19:15:02,233  Orchard.Environment.DefaultOrchardHost - A tenant could not be started: OrchardHUNEng
System.ArgumentException: A route named 'BitbucketAdminRoute' is already in the route collection. Route names must be unique.
Parameter name: name
at System.Web.Routing.RouteCollection.Add(String name, RouteBase item)
at Orchard.Mvc.Routes.RoutePublisher.Publish(IEnumerable`1 routes) in c:\DEV\OrchardHUN\src\Orchard\Mvc\Routes\RoutePublisher.cs:line 100
at Orchard.Environment.DefaultOrchardShell.Activate() in c:\DEV\OrchardHUN\src\Orchard\Environment\DefaultOrchardShell.cs:line 48
at Orchard.Environment.DefaultOrchardHost.ActivateShell(ShellContext context) in c:\DEV\OrchardHUN\src\Orchard\Environment\DefaultOrchardHost.cs:line 156
at Orchard.Environment.DefaultOrchardHost.CreateAndActivateShells() in c:\DEV\OrchardHUN\src\Orchard\Environment\DefaultOrchardHost.cs:line 135
The interesting thing is that this exception is only thrown IN the last few days for me, for Piedone/Zoltán it only occurs when enabling this module on a tenant, but restarting the instance fixes it.
I did some debugging and the strange thing is that the mentioned IRouteProvider implementation is called twice, once for both tenants where this module is enabled, which is contradicting to what the exception tells us. Btw these two tenants share the same SQL
And the mentioned IRouteProvider implementation can be found