More in this section

Forums / Developing with Sitefinity / Activating module throws error

Activating module throws error

2 posts, 0 answered
  1. David
    David avatar
    38 posts
    Registered:
    05 Apr 2012
    15 Aug 2012
    Link to this post
    I am attempting to create a module in an existing sitefinity site and I am unable to activate the module. 

    To try and isolate the error, I created a clean Sitefinity site, created a single page named McLaren Events with nothing on it, and then created a module called Events that has one field in it, the default "Title". When I go to activate the module, the same error happens. This is using SiteFinity 5.0 in both cases.

    Exception type: System.ArgumentException
    Message: An item with the same key has already been added
    Stack Trace: Telerik.Sitefinity.DynamicModules.Builder.Install.ModuleInstaller.HandleException(Exception ex, Boolean commitTransaction)
    Telerik.Sitefinity.DynamicModules.Builder.Install.ModuleInstaller.InstallModule(DynamicModule module, Boolean commitTransaction)
    Telerik.Sitefinity.DynamicModules.Builder.Web.Services.ContentTypeService.ActivateContentTypeInternal(String contentTypeId, String providerName)
    SyncInvokeActivateContentType(Object , Object[] , Object[] )
    System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
    System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
    System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
    System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
    System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

    Any suggestions?

    Cheers,
    David
  2. David
    David avatar
    38 posts
    Registered:
    05 Apr 2012
    15 Aug 2012
    Link to this post
    Found the problem.

    The conflict was due to the existance of SiteFinity's built in Events Module. Creating it with a different name allows activation without a problem.

    Cheers,
    David
2 posts, 0 answered