title: Upload File To SharePoint Online(office 365) Library Invokes Error
body: <p>How can one resolve this runtime error?</p>
  
  <p><strong>Error</strong> </p>
  
  <blockquote>
    <p>Could not load file or assembly 'Microsoft.SharePoint.Library, Version = 14.0.0.0, Culture = neutral, PublicKeyToken = 71e9bce111e9429c' or one of its dependencies. The system can not find the file specified.</p>
  </blockquote>
  
  <p><strong>CODE</strong></p>
  
  <pre><code>string destUrl = "URL";
  string destFileUrl = destUrl  + "biblioteca" + "/text.txt";
  using(SPWeb site = new SPSite(destUrl).OpenWeb())
  {
      site.AllowUnsafeUpdates = true;
  
      FileStream fileStream = File.Open("FILE" , FileMode.Open);
  
      site.Files.Add(destFileUrl, fileStream, true/*overwrite*/);
  
      fileStream.Close();
  }
  </code></pre>