Iam deploying solution to site scoped feature , and in feature activated event receiver iam writing the code to activate feature to all subsites but error is "feature is site-scoped and cannot be added to the web sharepoint 2010 " and code is
using (SPSite osite = properties.Feature.Parent as SPSite)
{
Guid featureGuid = new Guid(xxxxxxxxxxxxx);
foreach (SPWeb webs in osite.AllWebs)
{
webs.Features.Add(featureGuid);
}
}