diff --git a/src/Orchard/Mvc/Routes/RoutePublisher.cs b/src/Orchard/Mvc/Routes/RoutePublisher.cs index 1c8aee477..ee69bd0dc 100644 --- a/src/Orchard/Mvc/Routes/RoutePublisher.cs +++ b/src/Orchard/Mvc/Routes/RoutePublisher.cs @@ -97,7 +97,15 @@ namespace Orchard.Mvc.Routes { IsHttpRoute = routeDescriptor is HttpRouteDescriptor, SessionState = sessionStateBehavior }; - _routeCollection.Add(routeDescriptor.Name, shellRoute); + + try { + _routeCollection.Add(routeDescriptor.Name, shellRoute); + } + catch(ArgumentException) { + // Named routes can be added multiple times in the case of a module + // loaded in multiple tenants. There is no way to ensure a named route + // is already registered, thus catching the specific exception. + } } } }