title: Xamarin Forms : How to Run Apk file from the share
body: <p>i am trying to Run an Apk file from the share :</p>
  <p>This is the method I am using to Run an Apk file from the share :</p>
  <pre><code>  try
          {
  
              string user = &quot;*******&quot;;
              string pass = &quot;*******&quot;;
  
              string sharedFolder = &quot;MLS/hamzamls&quot;;
              string path = &quot;smb://172.20.121.36/&quot; + sharedFolder + &quot;/Version.txt&quot;;
              NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(&quot;&quot;, user, pass);
              SmbFile smbFile = new SmbFile(path, auth);
              var file = new SmbFile(path, auth);
  
              var readStream = file.GetInputStream();
              var memStream = new MemoryStream();
              ((Stream)readStream).CopyTo(memStream);
  
              readStream.Dispose();
  
              string version = Encoding.UTF8.GetString(memStream.ToArray());
  
              if (version != null &amp;&amp; AppInfo.VersionString.ToString() != version.ToString())
              {
                  Launcher.OpenAsync
                         (new OpenFileRequest()
                         {
                             File = new ReadOnlyFile(file.GetPath())
                         }
                     );
              }
  
          }
          catch (Exception ex)
          {
  
              throw;
          }
  </code></pre>
  <p>this code not work for me i get the error below.</p>
  <p>{System.IO.DirectoryNotFoundException: Could not find a part of the path &quot;/smb:/172.20.121.36/MLS/hamzamls/com.companyname.stocktakegunapplication.apk&quot;.
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous,</p>