Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
7.7k views
in .NET FTP by
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

4 Answers

0 votes
by (162k points)
Use the StandardOutputAppender with the Logger.

Most web containers capture stdout and direct it to a file.

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).
0 votes
by
Do you have a sample of utilisation of StandardOutputAppender.

Jean
0 votes
by
Hi i had the same problem after some work i found out that the DateTime with windows file parse didn't work well.

What you can do is edit the src to exclude the datetime part.
0 votes
by (162k points)
The unit tests use them, see the test subdir under src

Do you have a sample of utilisation of StandardOutputAppender.

Jean

Categories

...