Subject: ComponentPro.Sftp.CF TypeLoadException Date: 2022-11-15 14:43:18 From: Fabrizio Civetta Source: componentpro-sftp-cf-typeloadexception ---------------------------------------------------------------------- Hello, I'm having trouble with ComponentPro SFTP DLL (V7.2.20.234) with .net CF application (3.5) on WinCE (please note i'm also using use ComponentPro FTP dll 6.8.20.4155 without any problem). I always have this error: TypeLoadException at Dim client As New Sftp() I tryed same software on .NET 3.5 (windows 10) with correct libraryes and is fully working. I also tryed SftpClientDemo_2008 (.NET CF) with same error. What can i do? could be a problem of the .CF dll? many thanks. here the error: System.TypeLoadException was unhandled Message="TypeLoadException" StackTrace: at ComponentPro.Net.Sftp..ctor() at TestSftp.Form1..ctor() at System.Reflection.RuntimeConstructorInfo.InternalInvoke(RuntimeConstructorInfo rtci, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess, StackCrawlMark& stackMark) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.ConstructorInfo.Invoke(Object[] parameters) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at TestSftp.My.MyProject.MyForms.Create__Instance__[T](Form1 Instance) at TestSftp.My.MyProject.MyForms.get_Form1() at TestSftp.Form1.Main() InnerException: References: Componentpro.Common.CF Componentpro.Network.CF Componentpro.FileSystem.CF Componentpro.sftp.CF here code: Imports ComponentPro.IO Imports ComponentPro.Net Imports ComponentPro.Diagnostics Imports ComponentPro Public Class Form1 Dim client As New Sftp() End Class ---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index