sfFTPLib exception thrown from .NET DLL

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
Posts: 1
Joined: Fri Jan 28, 2011 1:46 pm

sfFTPLib exception thrown from .NET DLL

Post by MDMACK13 » Mon Oct 15, 2012 5:12 pm

I have an application that calls a DLL that uses sfFTPLib. This DLL is called using System.Reflection but fails each time with an error of "System.Reflection.TargetInvocationException" and an inner error of
"Could not load file or assembly 'Interop.sfFTPLib, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format."

I am using C# with the latest version of sfFTPLib.dll. All files necessary for sfFTPLib are available to the DLL. Has anyone run across this before and have a solution?


Posts: 12030
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)

Re: sfFTPLib exception thrown from .NET DLL

Post by mb » Mon Oct 15, 2012 6:42 pm

Please contact support and send the demo project to reproduce the problem.

Post Reply