title: Sharepoint webpart deployment - activate features error
body: <p>I'm a noob to Sharepoint development, actually I hoped I'd always be a noob to it, and I'm having difficulty building my first web part for a Sharepoint 2010 website. I'm using Visual Studio 2010, and I started with a Visual Web Part. All i added was a simple asp:Label control, as I just want to make sure it's deploying correctly before I go any further. It builds, says it's deploys even, and then croaks on the 'activate feature' step. I get the following error.</p>
  
  <pre><code>Error   1   Error occurred in deployment step 'Activate Features': Feature with Id '12765e82-6e4a-4407-aa8c-77b537841f4b' is not installed in this farm, and cannot be added to this scope. 0   0   scCodePart
  </code></pre>
  
  <p>There isn't much out there to go by for help on this. I made sure the scope of the feature was set to 'Site', as was recommended. I even tried changing the xml of Feature1.Template.xml to:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;Feature Id="12765e82-6e4a-4407-aa8c-77b537841f4b" Scope="Site" xmlns="http://schemas.microsoft.com/sharepoint/"&gt;
  &lt;/Feature&gt;
  </code></pre>
  
  <p>And the error persists. I read something about the web.config of the site might causing it, but it provided no explanation as to why. Any thoughts?</p>
  
  <p><em>EDIT</em></p>
  
  <p>There is my Elements.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/" &gt;
    &lt;Module Name="scClosetCodesVWP" List="113" Url="_catalogs/wp"&gt;
      &lt;File Path="scClosetCodesVWP\scClosetCodesVWP.webpart" Url="scClosetCodesVWP.webpart" Type="GhostableInLibrary" &gt;
        &lt;Property Name="Group" Value="Custom" /&gt;
      &lt;/File&gt;
    &lt;/Module&gt;
  &lt;/Elements&gt;
  </code></pre>
  
  <p>and my Feature1.Template.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;Feature xmlns="http://schemas.microsoft.com/sharepoint/"&gt;
  &lt;/Feature&gt;
  </code></pre>
  
  <p>I haven't altered either one of them from what Visual Studio initially creates. I tried declaring the id &amp; scope in Feature1.Template.xml, but i got the same error after.</p>