Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

ctrahan

Posts

2

Joined

Fri Mar 04, 2011 8:59 am

c# - 'System.ArgumentNullException' in edtFTPnet.dll

by ctrahan » Fri Mar 04, 2011 9:12 am

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)
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: c# - 'System.ArgumentNullException' in edtFTPnet.dll

by support2 » Fri Mar 04, 2011 10:05 am

Can you print the stack trace & post it?
no avatar
User

ctrahan

Posts

2

Joined

Fri Mar 04, 2011 8:59 am

by ctrahan » Fri Mar 04, 2011 10:22 am

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

Who is online

Users browsing this forum: No registered users and 33 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron