Hot answers tagged error
You might be using a wrong 'Web' object. It shouldn't be System.Web or Microsoft.Web. It should be from Microsoft.SharePoint.SPWeb namespace. So first of all you need to get an 'SPWeb' object from 'properties'. Depending on where you are activating the feature, it should be something like this: If you are activating a Web scoped feature: SPWeb web = ...
Only top voted, non community-wiki answers of a minimum length are eligible