title: Namespace SPSite , SPWeb could not be found
body: <p>I am using <a href="http://www.icsharpcode.net/opensource/sd/" rel="nofollow">sharpdevelop</a> to write a program which would add items to a pre-existing list on a SharePoint website .</p>
  
  <p>This is my code :</p>
  
  <pre><code>        using System.IO;
          using Microsoft.SharePoint;
          using System;
  
  
          namespace Sampl22.cs
          {
              class Program
              {
                  public static void Main(string[] args)
                  {
                      using (SPSite site = new SPSite("http://community.intranet/Lists/AllItems.aspx"))
                        {
                          using (SPWeb web = site.OpenWeb())                  
                               {
                                  SPList list = web.Lists["Sample Forms Data"];
                                  SPListItem item = list.Items.Add();
                                  item["FormName"] = "New Form";
                                  item["Data"] = "Description of Task";
                                   item.Update();
                               }
                        }
                  }
              }
          }
  </code></pre>
  
  <p>and the errors that i am getting are :</p>
  
  <blockquote>
    <p>The type or namespace name 'SPSite' could not be found (are you
    missing a using directive or an assembly reference?) (CS0246)<br/> The
    type or namespace name 'SPList' could not be found (are you missing a
    using directive or an assembly reference?) (CS0246)<br/> The type or
    namespace name 'SPListItem' could not be found (are you missing a
    using directive or an assembly reference?) (CS0246)<br/> The type or
    namespace name 'SPWeb' could not be found (are you missing a using
    directive or an assembly reference?) (CS0246)<br/></p>
  </blockquote>
  
  <p>Under the references section I have:</p>
  
  <ul>
  <li>FPSRVUTL</li>
  <li>FPWEC</li>
  <li>Microsoft.SharePoint.BusinessData.Administration.Client</li>
  <li>Microsoft.SharePoint.BusinessData.Administration.Client.Intl</li>
  <li>System</li>
  <li>System.Core</li>
  <li>System.Data</li>
  <li>System.Data.DataSetExtensions</li>
  <li>System.Xml</li>
  <li>System.Xml.Linq</li>
  </ul>
  
  <p>What should be done in order to remove these errors ?</p>