Tag Info

New answers tagged


Your code is wrong, it's using the same variable name twice. It should be: SPEventReceiverDefinition grpUserAdded = site.EventReceivers.Add(); grpUserAdded.Name = "Event Receiver Group User Added"; grpUserAdded.Type = SPEventReceiverType.GroupUserAdding; grpUserAdded.Assembly = "BI.Lofbergs.Intranet.Business, Version=, ...


The problem you would have is timing, the field must have been created before you provision your content type. So the FeatureActivated is a no go. I would not go for FeatureInstalling either since you can not control with ease the execution order. I sometimes uses the FeatureActivated event, but in those cases I create both content type, fields, and binds ...

Top 50 recent answers are included