While testing my solution I receive an error on Feature activation:
Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb objects when you are done with all objects obtained from them, but not before.
This is the way I'm getting SPWeb:
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
using (SPWeb web = properties.Feature.Parent as SPWeb)
{
ClassOfMine.doYourStuff(web);
}
}
What am I doing wrong?

