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

tbthtbth

DirDetails in web application

by tbthtbth » Mon Nov 15, 2004 11:39 pm

Hello,

I have wrote this classe to test your product :

public sealed class Test
{
public const string Host = "localhost";
public const string User = "usr_ftp";
public const string Password = "psw_ftp";

private Test() {}

public static FTPFile[] GetFiles()
{
FTPClient ftp = null;
ftp = new FTPClient(Host);
ftp.Login(User, Password);

FTPFile[] files = ftp.DirDetails(".");

ftp.Quit();

return files;
}
}

and it works in a console application but not in a web application. (the size of the array is always 0)

How I can log messages in a web application to try to undersand why that doen't work (in viewing if an exception is raised for example).



Jean

PS : sorry for my english
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: DirDetails in web application

by support2 » Mon Nov 15, 2004 11:57 pm

no avatar
User

tbthtbth

Re: DirDetails in web application

by tbthtbth » Tue Nov 16, 2004 2:08 am

no avatar
User

Warstar

by Warstar » Fri Nov 19, 2004 8:32 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: DirDetails in web application

by support2 » Fri Nov 19, 2004 10:16 pm


Who is online

Users browsing this forum: No registered users and 12 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign