I created an Event Receiver, but the problem is that I can't get a reference to the SPContext
: SPContext.Current
returns null
. I need it to add some lists to the site. Does anyone have an idea of how I could get it?
Also I tried putting break points inside the event receiver, but FeatureActivates
never triggers for some reason. What is the correct event to use when a list is activated right after de deployment?