Jump to content


Photo

doesnt show directories


  • This topic is locked This topic is locked
4 replies to this topic

#1 jawad

jawad
  • Members
  • 4 posts

Posted 15 November 2005 - 06:57 PM

although i m able to upload the files in any directory on the server, on the / directory and within any directory but when i want to read any information regarding / directory or after changing the directory the inner files and directories it never shows anything


con.ReadDirectory();
MessageBox.Show(con.Directory.Count.ToString());

#2 mb

mb

    Developer

  • Administrators
  • 11520 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 15 November 2005 - 07:40 PM

Did you check the return value of the ReadDirectory() function?

Please post the logfile of your connection too. You can specify it in the LogFile property.

Regards,
-Mat

#3 jawad

jawad
  • Members
  • 4 posts

Posted 15 November 2005 - 08:10 PM

it shows that success message i dont know the exact its sort of enumsuccess sorf ot message coz that is in my office, as if the result is succes then it enters the code in if condition but in it it shows the directory count to be 0 always in any case in any directory no matter how many directories there are, i cant understand y becuase if i m able to upload the file in any directory i mention then y not it show me the directory info

#4 jawad

jawad
  • Members
  • 4 posts

Posted 16 November 2005 - 11:57 AM

oh yes thanx to ALlah i got it, i changed its mode to passive, i mean i changed the value con.Passive=true; and con is the instance of
FTPConnectionMTA

#5 jawad

jawad
  • Members
  • 4 posts

Posted 18 November 2005 - 06:06 PM

dd




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users