I implemented the FeatureDeactivating event just like the activated event except I used the Remove() method instead of Add(). From all the articles I found this is what you're supposed to do, but perhaps I'm missing something. I also tried removing
all modifications for a specific owner, which resulted in duplicating every modification that owner made. Everything seems to suggest that the Remove() method is actually adding entries.
Here is my code, can someone tell me if I've done someting wrong or if this is a bug?
public class Feature2EventReceiver : SPFeatureReceiver
public override void FeatureActivated(SPFeatureReceiverProperties properties)
// Create a configuration object
SPWebConfigModification config = new SPWebConfigModification();
config.Owner = "Sample";
config.Name = "WorkflowService[Class='ClassLibrary1.CustomService']";
View Complete Post