title: Sharepoint cannot see newly deployed features and will not activate them
body: <p>I've been updating a SP2010 solution which integrates an external content source into search via BCS. This solution deploys a feature (featureA) to the farm scope. I split it into two features, one (FeatureA) deploying to the farm scope, and one (featureB) to the site scope.</p>
  
  <p>My update script does this:</p>
  
  <ul>
  <li>Deactivate FeatureA on the farm</li>
  <li>Update-SPSolution  with the new wsp file (same name)</li>
  <li>Activate FeatureA on the farm</li>
  <li>Activate FeatureB on the two sites (on two different web apps)</li>
  </ul>
  
  <p>The script bombs on the last two steps, saying</p>
  
  <pre><code>Enable-SPFeature : The Feature is either not found or not a Farm Level Feature. Use Url parameter to specify the scope of the Feature.
  </code></pre>
  
  <p>for the first one (farm), and </p>
  
  <pre><code>Enable-SPFeature : The Feature is not a Farm Level Feature and is not found in a Site level defined by the Url http://url-site
  </code></pre>
  
  <p>on the second one (sites)</p>
  
  <p>This is a test run on the CI server, which means it will also crash on the production server.
  However, deploying the package on my machine, and activating the features, works fine.</p>
  
  <p>I've checked, the features are actually present in the SharePoint folder, so the deployment seems to have gone ok. I can't work out why SharePoint can't see them though. If I run Get-SPFeature, they are not in the list.</p>
  
  <p>I've tried iisreset, to no avail.</p>
  
  <p>EDIT:</p>
  
  <p>I've managed to get SharePojnt to notice the two features, by using Install-SPFeature.
  However, it still won't enable FeatureB, but errors out with:</p>
  
  <pre><code>Enable-SPFeature : Attempted to perform an unauthorized operation.
  </code></pre>
  
  <p>I'm at a bit of a loss once again.</p>