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();
}
}
There was an error somewhere in either the list instance, list definition, list schema or the feature receiver, unfortunately with MOSS – you don’t always get real error messages or an easy way to debug… So I ended up starting over… completely and building in functionality 1 line at a time….