+1 vote
by (130 points)
edited

Hello,

I have a job that runs fine on local and din on windows server 2008, but after upgrading to windows server 2012 R2 I get an error:

Unhandled Exception: System.MissingMethodException: Method not found: 'System.String Rebex.Net.Ftp.Connect(System.String, Int32, Rebex.Net.TlsParameters, Rebex.Net.FtpSecurity)'. at CopyFileToFTPS.Program.TransferFileViaFTPS(String hostName, Int32 hostPort, String userName, String password, String sourceFile, String destinationFile) at CopyFileToFTPS.Program.Main(String[] args) in d:\Work\CopyFileToFTPS\Program.cs:line 49. Process Exit Code -532459699.

Any Idea?

Thank You.

Applies to: Rebex FTP/SSL
by (58.9k points)
edited

Hello, what is the version of Rebex components that you are using? Could you please send the dlls back to support@rebex.net? Rebex also comes with precompiled binaries for different frameworks - what is your target .NET framework?

by (130 points)
edited

I use: Rebex.Net.Ftp.dll - 3.0.3854.0 Rebex.Net.ProxySocket.dll - 2.0.3854.0 Rebex.Net.SecureSocket.dll - 3.0.3854.0 Rebex.Security.dll - 1.5.385.4.4

Target framework is .NET Framework 3.5

Thank You

1 Answer

0 votes
by (58.9k points)
edited

Hello,

the Rebex.Net.Ftp.dll you are using was distributed in two variants - SSL and non-SSL. The non-SSL version of the FTP dll really lacked the method you are trying to use.

From the dll names you sent we guess you actually own the SSL version, so you should be able to download the SSL version. Please login into your Rebex account and there you should be able to download the installation package for the SSL variant.

Make sure to change the dlls from the SSL package and the problem should be resolved then. Please let us know whether you were able to make it work this way!

By the way, the version 3854 is pretty old, it comes from year 2010. You can see the bugfixes and new features introduces since then at the release note page. Updating to the latest version cost just 1/3 of the component price and it is definitely recommended. Let us know your license details so that we can send you a renewal link.

by (130 points)
edited

Downloaded the 3.0.4086.0 version and replaced the dll's in the application folder on the server and still got the same error.

On my local PC it's working.

Thank You.

by (58.9k points)
edited

The old dll is probably stuck somewhere on the server and the program might be loading the old version still. To make sure that the newer version of Rebex (4086 in your case) is deployed correctly to the server, please follow this tutorial: http://forum.rebex.net/questions/4217/upgrade-to-newer-version-of-rebex-component

by (58.9k points)
edited

One more idea, do you have the Rebex assemblies in the GAC on the Windows Server 2012R2? In this case you would need to update the binaries there as the GAC has higher priority than the program folder.

by (130 points)
edited

Thank You all for help.

I seems that on the new server was registered in the GAC the wrong version of the Rebex. Uninstalled from GAC and now it's working.

Thank You.

...