Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.8k views
in .NET FTP by (160 points)
New to this package. Looking to code simple FTP app. VS debugger halts when I call 'ftp.Connect();. Program connects, then bombs. Code below. Any feedback would be appreciated. Thanks!

EnterpriseDT.Net.Ftp.FTPConnection.LogLevel = EnterpriseDT.Util.Debug.LogLevel.All;
EnterpriseDT.Net.Ftp.FTPConnection.LogToConsole = true;
EnterpriseDT.Net.Ftp.FTPConnection ftp = new EnterpriseDT.Net.Ftp.FTPConnection();
ftp.StrictReturnCodes = false;
ftp.ServerAddress = strFTP;
try
{
ftp.Connect();
}
catch (ApplicationException e)
{
Console.WriteLine(e.Message);
}



DEBUG [FTPControlSocket] 3 Mar 2011 13:30:52.860 : 220 Welcome to CSUB's Sleipni
r FTP service.
DEBUG [FTPConnection] 3 Mar 2011 13:30:52.861 : Connected to sleipnir.cs.csubak.
edu (instance=0)

2 Answers

0 votes
by (162k points)
Can you print the stack trace & post it?
0 votes
by (160 points)
edtFTPnet.dll!EnterpriseDT.Net.Ftp.FTPConnection.Connect() + 0x28f bytes
> AVR_Frame4.exe!AVR_Frame4.Program.Main(string[] args = {string[0]}) Line 49 + 0xb bytes C#
[Native to Managed Transition]
[Managed to Native Transition]
mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args) + 0x3a bytes
Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() + 0x2b bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x66 bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x6f bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44 bytes

0000028a call 53596C1E
0000028f cmp dword ptr [ebp-24h],0 <----------------
00000293 je 000002A0
00000295 mov ecx,dword ptr [ebp-40h]
00000298 mov eax,dword ptr [ecx]
0000029a call dword ptr [eax+000001E4h]
000002a0 nop

Categories

...