Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.3k views
in .NET FTP by
hai,
i wrote a program to delete folder contain files and folders, it works well locally but it is not working on webserver.this is the log
(aspnet_wp.exe (PID: 1900) was recycled because it was suspected to be in a deadlocked state. It did not send any responses for pending requests in the last 180 seconds. )
i gave timeout of 20 min.
thanks in advance

3 Answers

0 votes
by (161k points)
This isn't enough information for us to assist - perhaps you could isolate the problem to a small code fragment & post it.

hai,
i wrote a program to delete folder contain files and folders, it works well locally but it is not working on webserver.this is the log
(aspnet_wp.exe (PID: 1900) was recycled because it was suspected to be in a deadlocked state. It did not send any responses for pending requests in the last 180 seconds. )
i gave timeout of 20 min.
thanks in advance
0 votes
by
public void deleteftp (string dirname)
{
//change to passing dir
objftp.ChDir(dirname);
// current dir details
EnterpriseDT.Net.Ftp.FTPFile[] ftpfile = objftp.DirDetails(".");
if(ftpfile.Length>0)
{

for(int i =0; i< ftpfile.Length;i++)
{
if(ftpfile[i].Dir==false)
{
Response.Write(ftpfile[i].Name+"<br>");
objftp.Delete(ftpfile[i].Name);
}
}
EnterpriseDT.Net.Ftp.FTPFile[] ftpdir = objftp.DirDetails(".");

if(ftpdir.Length>0)
{
for(int q =0; q< ftpdir.Length;q++)
{

deleteftp(ftpdir[q].Name);

}
objftp.ChDir("..");
objftp.RmDir(dirname);

}
else
{
objftp.ChDir("..");
objftp.RmDir(dirname);

}

}
else
{
objftp.ChDir("..");
objftp.RmDir(dirname);


}


}
0 votes
by (161k points)
It is difficult to say what the problem might be - perhaps there is a permissioning problem - is your program permitted to delete files from the webserver?

Categories

...