Error when enabling module

Dec 3, 2012 at 6:32 PM

I'm running into a routing error when enabling the module on my site.  I have several tenant sites, which I think is causing the problem.  I have a top level site with 4 other tenant sites under it.  When the module is enabled on more than one site I get the error below:

 

Server Error in '/' Application.

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

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: A route named 'Amba.ImageMultiPicker.ResizeImage' is already in the route collection. Route names must be unique.
Parameter name: name

Source Error: 

Line 98:                         SessionState = sessionStateBehavior
Line 99:                     };
Line 100:                    _routeCollection.Add(routeDescriptor.Name, shellRoute);
Line 101:                }
Line 102:            }


Source File: d:\dsendelb\My Documents\Visual Studio 2010\Projects\PublicInternet\src\Orchard\Mvc\Routes\RoutePublisher.cs    Line: 100 

Stack Trace: 

[ArgumentException: A route named 'Amba.ImageMultiPicker.ResizeImage' is already in the route collection. Route names must be unique.
Parameter name: name]
   System.Web.Routing.RouteCollection.Add(String name, RouteBase item) +2339214
   Orchard.Mvc.Routes.RoutePublisher.Publish(IEnumerable`1 routes) in d:\dsendelb\My Documents\Visual Studio 2010\Projects\PublicInternet\src\Orchard\Mvc\Routes\RoutePublisher.cs:100
   Orchard.Environment.DefaultOrchardShell.Activate() in d:\dsendelb\My Documents\Visual Studio 2010\Projects\PublicInternet\src\Orchard\Environment\DefaultOrchardShell.cs:48
   Orchard.Environment.DefaultOrchardHost.ActivateShell(ShellContext context) in d:\dsendelb\My Documents\Visual Studio 2010\Projects\PublicInternet\src\Orchard\Environment\DefaultOrchardHost.cs:156
   Orchard.Environment.DefaultOrchardHost.ActivateShell(ShellSettings settings) in d:\dsendelb\My Documents\Visual Studio 2010\Projects\PublicInternet\src\Orchard\Environment\DefaultOrchardHost.cs:250
   Orchard.Environment.DefaultOrchardHost.StartUpdatedShells() in d:\dsendelb\My Documents\Visual Studio 2010\Projects\PublicInternet\src\Orchard\Environment\DefaultOrchardHost.cs:116
   Orchard.Environment.DefaultOrchardHost.BeginRequest() in d:\dsendelb\My Documents\Visual Studio 2010\Projects\PublicInternet\src\Orchard\Environment\DefaultOrchardHost.cs:215
   Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.BeginRequest() in d:\dsendelb\My Documents\Visual Studio 2010\Projects\PublicInternet\src\Orchard\Environment\DefaultOrchardHost.cs:78
   Orchard.Web.MvcApplication.HostBeginRequest(HttpApplication application, IOrchardHost host) in d:\dsendelb\My Documents\Visual Studio 2010\Projects\PublicInternet\src\Orchard.Web\Global.asax.cs:38
   Orchard.WarmupStarter.Starter`1.OnBeginRequest(HttpApplication application) in d:\dsendelb\My Documents\Visual Studio 2010\Projects\PublicInternet\src\Orchard.WarmupStarter\Starter.cs:68
   Orchard.Web.MvcApplication.Application_BeginRequest() in d:\dsendelb\My Documents\Visual Studio 2010\Projects\PublicInternet\src\Orchard.Web\Global.asax.cs:29

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +192
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +108
   System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
   System.Web.Util.ArglessEventHandlerProxy.Callback(Object sender, EventArgs e) +56
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929

 

 

 

 

 

 

Thanks

Coordinator
Dec 3, 2012 at 7:59 PM

Try to use last sources of this module.

Dec 4, 2012 at 1:43 PM

Wow that was fast.  That fixed it.  Thanks a bunch!