Activating module throws error

Posted by Community Admin on 04-Aug-2018 09:25

Activating module throws error

All Replies

Posted by Community Admin on 15-Aug-2012 00:00

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

Posted by Community Admin on 15-Aug-2012 00:00

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

This thread is closed