ERROR message

0 votes
asked Apr 23, 2013 by navin (120 points)
edited Sep 24, 2013
************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'Rebex.Ftp, Version=4.0.4700.0, Culture=neutral, PublicKeyToken=1c4638788972655d' or one of its dependencies. The system cannot find the file specified.
File name: 'Rebex.Ftp, Version=4.0.4700.0, Culture=neutral, PublicKeyToken=1c4638788972655d'
   at FTPFileDownloader.MulitpleDownloader.DownloadFiles(String remotePath, String localPath)
   at FTPFileDownloader.MulitpleDownloader.btnDownload_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///F:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
FTPFileDownloader
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///F:/Documents%20and%20Settings/All%20Users/Desktop/FTPFileDownloader.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///F:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///F:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///F:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///F:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///F:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///F:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///F:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///F:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///F:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitdebugging="true"/>
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Any one help quickly...

2 Answers

0 votes
answered Apr 23, 2013 by Tomas Knopp (58,890 points)
edited Apr 24, 2013

Hi,

it looks like you are trying to use some code from Rebex.Ftp.dll which your project doesn't know as a reference.

You can get a 30-day trial package of FTP/SSL and dependency dll's at FTP/SSL download page.

When using Rebex.Ftp, you have to reference the following dlls:

  • Rebex.Ftp.dll
  • Rebex.Networking.dll
  • Rebex.Common.dll
commented Apr 24, 2013 by navin (120 points)
edited Apr 24, 2013

not understand....

commented Apr 24, 2013 by Tomas Knopp (58,890 points)
edited Apr 24, 2013

Can you please describe when the

System.IO.FileNotFoundException: Could not load file or assembly 'Rebex.Ftp, Version=4.0.4700.0, Culture=neutral, PublicKeyToken=1c4638788972655d' or one of its dependencies. The system cannot find the file specified.
File name: 'Rebex.Ftp, Version=4.0.4700.0, Culture=neutral, PublicKeyToken=1c4638788972655d'

exception occured exactly? Was it when trying to run some of our samples or when creating your own project?

0 votes
answered Sep 24, 2013 by Tomas Knopp (58,890 points)
edited Sep 24, 2013

Please follow these steps:

1) remove any Rebex assemblies from the project 2) clean the project 3) reference all assemblies from the version you downloaded 4) recompile whole project.

It should fix your issue.

Welcome to Q&A forum for C# and VB.NET developers working with following .NET components:

If you need immediate assistance, please contact us directly.

...