I am trying to add a propertie to a WebAplication on FeatureInstalled event receiver.
public override void FeatureInstalled(SPFeatureReceiverProperties properties)
{
SPContext.Current.Site.WebApplication.Properties["test"] = @"test";
}
When I deploy my applciation from VS2010 I get:
Error occurred in deployment step 'Add Solution': Object reference not set to an instance of an object.
This error has only occured since adding this event reciever. What am I doing wrong?