title: programmatically editing properties of item's uploaded in sharepoint document library
body: <p>i am trying to <strong>GET</strong> the name,title,content type &amp; document tag of <strong>document</strong> stored in <strong>SharePoint document library</strong> and <strong>EDIT</strong> it programmatically using visual studio 2012 with <strong>Sandbox Solution</strong>.</p>
  
  <p>i have successfully get all of these properties in VS2012 and also updating successfully but when i click on update button it gives <strong>Error: File Not Found</strong>.</p>
  
  <p>and after that  when i goes to my document page then all these properties looks like updated.
  so, why it throw error every time i click on update button since all properties also updateing successfully.</p>
  
  <p>my code is here:</p>
  
  <pre><code>SPSite oSite = new SPSite("http://&lt;sitename&gt;/");
        2: SPWeb oWeb = oSite.OpenWeb();
        3: oWeb.AllowUnsafeUpdates = true;
        3: SPList oList = oWeb.Lists["Shared Documents"];
        4: SPListItem oListItem = oList.Items[0];
        5: oListItem.File.CheckOut();
        6: oListItem["Name"] = "xyz";  
        7: oListItem["Title"] = "abc";
        8: oListItem["Content_Type"] = "lmn";
        9: oListItem["Document_Tag"] = "pqr";
        7: oListItem.Update();
        8: oListItem.File.CheckIn("file name has been changed");
       11: oWeb.AllowUnsafeUpdates =false;
        9: oWeb.Dispose();
  </code></pre>