SPWebConfigModification does not work on Farms with multiple WFEs

Sometime back a customer came up with an issue. He has written a code in FeatureActivated event handler to add an entry into Web.Config file by using SPWebConfigModification API. The same entry was being removed in FeatureDeactivating event handler. The code is working perfectly fine in the test machine but failed to add or remove…

1

SPWebConfigModification adds the entry in web.config, but does not remove it

I was working with one of my colleague on an issue. It was a weird one, where customer was using SPWebConfigModification class to add the safe control entry into the web.config. The sample code being used was adapted from the SPWebConfigModification page on MSDN. 1: static void Main(string[] args) 2: { 3:  4: SPSite oSite…

3