Really wish i was God, then I would understand what this means:
The element 'MyList' of type 'ListInstance' for feature 'MyLists' (id: f3981600- c824-4f88-85ce-94d049ba63ee) threw an exception during activation: Cannot complete this action. Please try again.
Anyone know what this error "really means". Its happening when i try activate the feature.
The feature on activated code is pretty straight forward:
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
using (SPWeb site = properties.Feature.Parent as SPWeb)
{
SPList list = site.Lists["My Messages"];
list.ContentTypesEnabled = true;
list.Update();
}
}