title: Get shared link to a file Dropbox API v2.0 c#
body: <p>I'm using Dropbox.Net API v2.0 to upload document to Dropbox:</p>
  
  <pre><code>private async Task Upload(DropboxClient dbx, string localPath, string remotePath)
      {
          using (var fileStream = File.Open(localPath, FileMode.Open))
          {
              var s = await dbx.Files.UploadAsync(remotePath, body: fileStream);
          }
      }
  </code></pre>
  
  <p>How do I get a shared link to the uploaded document?</p>
  
  <p>I have tried that:</p>
  
  <pre><code>await dbx.Sharing.GetSharedLinkFileAsync(remotePath);
  </code></pre>
  
  <p>But got the following error:</p>
  
  <pre><code>&lt;Message&gt;An error has occurred.&lt;/Message&gt;
  &lt;ExceptionMessage&gt;shared_link_not_found/.&lt;/ExceptionMessage&gt;
  </code></pre>
  
  <p>I'm nissing something but not sure what, any idea?</p>