title: What could be causing a System.TypeLoadException?
body: <p>I'm developing, with VS2008 using C#, an application for Honeywell Dolphin 6100, a mobile computer with a barcode scanner that uses Windows CE 5.0 like OS.</p>
  <p>I want to add a functionality that can send files from the local device to the distant server. I found the library &quot;<a href="http://www.tamirgal.com/blog/page/SharpSSH.aspx" rel="noreferrer">Tamir.SharpSSH</a>&quot; which can guarantee this. I tested the code on a console application and on normal windows forms application and it works perfectly. But when I tried to use the same code on the winCE device, I get a TypeLoadException and I have the error message:</p>
  <pre>
  Could not load type 'Tamir.SharpSsh.SshTransferProtocolBase' from assembly 'Tamir.SharpSSH,   
  Version=1.1.1.13, Culture=neutral, PublicKeyToken=null'.
  </pre>
  <p>the code that I'm use is like below :</p>
  <pre><code>SshTransferProtocolBase sshCp = new Scp(Tools.GlobalVarMeth.hostName, Tools.GlobalVarMeth.serverUserName);
  sshCp.Password = Tools.GlobalVarMeth.serverUserpassword;
  sshCp.Connect();
  
  string localFile = Tools.GlobalVarMeth.applicationPath + &quot;/&quot; + fileName + &quot;.csv&quot;;
  string remoteFile = Tools.GlobalVarMeth.serverRemoteFilePath + &quot;/&quot; + fileName + &quot;.csv&quot;;
  
  sshCp.Put(localFile, remoteFile);
     
  sshCp.Close();
  </code></pre>
  <p>Any one have any idea on this ? I will be really grateful !!!</p>