ftp connection breaks

Hi,

I have a ftp client based on the edt library. And it works fine untill I switch to a different program or I minimize it.
Then it starts spawning all kinds of exotic errors. But mostly I get connection already in use ?

Any ideas on how to solve that ?

Thanks already

[280 byte] By [CasualJim] at [2008-3-6]
# 1
Does your Ftp client use FtpWebRequest class from managed code?

If so, Can you post the exact exception you get

Malar at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 2

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
Koolkraft.Library.FTP.Net.Ftp.FTPException: Try later, data connection in use.
at Koolkraft.Library.FTP.Net.Ftp.FTPClient.InitPut(String remoteFile, Boolean append)
at Koolkraft.Library.FTP.Net.Ftp.FTPClient.PutData(Stream srcStream, String remoteFile, Boolean append)
at Koolkraft.Library.FTP.Net.Ftp.FTPClient.Put(String localPath, String remoteFile, Boolean append)
at Koolkraft.Library.FTP.Net.Ftp.FTPClient.Put(String localPath, String remoteFile)
at TVID.MediaAdmin.ShowProgress.Upload()
at TVID.MediaAdmin.ShowProgress.ShowProgress_Activated(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnActivated(EventArgs e)
at System.Windows.Forms.Form.set_Active(Boolean value)
at System.Windows.Forms.Form.WmActivate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
-
MediaAdmin
Assembly Version: 1.10.10.0
Win32 Version: 1.10.10.0
CodeBase: file:///I:/TVID/FTP%20Upload/MediaAdmin/bin/Release/MediaAdmin.exe
-
TVID.MediaAdmin
Assembly Version: 1.10.10.0
Win32 Version: 1.10.10.0
CodeBase: file:///I:/TVID/FTP%20Upload/MediaAdmin/bin/Release/TVID.MediaAdmin.DLL
-
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
-
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
-
System.Web.Services
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.web.services/1.0.5000.0__b03f5f7f11d50a3a/system.web.services.dll
-
MediaAdminLib
Assembly Version: 1.10.10.0
Win32 Version: 1.10.10.0
CodeBase: file:///I:/TVID/FTP%20Upload/MediaAdmin/bin/Release/MediaAdminLib.DLL
-
Koolkraft.Library
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///I:/TVID/FTP%20Upload/MediaAdmin/bin/Release/Koolkraft.Library.DLL
-
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
-
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
-
System.Web
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.web/1.0.5000.0__b03f5f7f11d50a3a/system.web.dll
-
kgnsdb7t
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
-
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
-
Genghis
Assembly Version: 0.5.1529.35402
Win32 Version: 0.5.1529.35402
CodeBase: file:///I:/TVID/FTP%20Upload/MediaAdmin/bin/Release/Genghis.DLL
-
Koolkraft.Library.FTP
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///I:/TVID/FTP%20Upload/MediaAdmin/bin/Release/Koolkraft.Library.FTP.DLL
-

CasualJim at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 3
This uses a 3rd party FTp Client. YOu might want to check with them

Koolkraft.Library.FTP
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///I:/TVID/FTP%20Upload/MediaAdmin/bin/Release/Koolkraft.Library.FTP.DLL
System.Net has a class FtpWebRequest, that allows you to do the same..

Malar at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...

.NET Development

Site Classified