I have a Farm level feature that returns null when I try to access SPContect.Current.Site. Is another way to grab a list of site collections? I have access to SPFarm.Local


Check this link... You need to get the web applications first then iterate through each web application's sites.

Can't this be a web applicatiion feature? Why exactly would you make it a farm feature?

  • I'm uploading InfoPath forms. I guess maybe it could be a Web Application feature, I haven't tried yet. – Meyer Denney Sep 15 '12 at 0:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.