Possible Duplicate:
Connection failed

I am trying to upload my text file using putfile function it give error" connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.2.120:50548". In my code there is no problem in connection this error occurs when i using putfile method for upload files.Here i am written my code please see it and suggest what i do.

string str2 = Convert.ToString(ftp.PutFile(@"C:\Documents and Settings\neetesh\Desktop\FTPS Project All\Test\shwetamber.docx", "/wwwroot/shwetamber.docx")); if (ftp.PutFile(listView1.Items[i].SubItems[1].Text,strSort(listView1.Items[i].SubItems[1].Text)) > 0) { }

Thanks neha

asked 02 Aug '10, 14:12

neham's gravatar image

neham
16
accept rate: 0%

edited 10 Aug '10, 13:44

Rebex%20KB's gravatar image

Rebex KB ♦♦
256312

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×136
×18

Asked: 02 Aug '10, 14:12

Seen: 262 times

Last updated: 10 Aug '10, 13:44