Experts-
I have a strange problem while activating webapplication scope feature using SharePoint object model. This is throwing error inconsistently. Here is the snippet.
SPFarm.Local.FeatureDefinitions.Add("MyFeature\\feature.xml", new Guid(stringFeatureID), true); SPWebApplication webapplication=getthewebapplication(); webapplication.Features.Add(new Guid(stringFeatureID), true); --- ERROR HERE
Getting object reference error. No clues found on debugging and ULS logs.
Thoughts please?
Bala