Click here to Skip to main content
15,898,538 members
Home / Discussions / C#
   

C#

 
AnswerRe: function rectification Pin
Nissim Salomon7-Oct-07 22:03
Nissim Salomon7-Oct-07 22:03 
QuestionDisable the Automatic ToolTip Of Treeview Pin
Venki567-Oct-07 20:35
Venki567-Oct-07 20:35 
AnswerRe: Disable the Automatic ToolTip Of Treeview Pin
stancrm7-Oct-07 20:44
stancrm7-Oct-07 20:44 
GeneralRe: Disable the Automatic ToolTip Of Treeview Pin
Venki568-Oct-07 18:09
Venki568-Oct-07 18:09 
QuestionSet XmlSerialize to ignore fields in their default value Pin
eggie57-Oct-07 20:16
eggie57-Oct-07 20:16 
AnswerRe: Set XmlSerialize to ignore fields in their default value Pin
stancrm7-Oct-07 20:40
stancrm7-Oct-07 20:40 
GeneralRe: Set XmlSerialize to ignore fields in their default value Pin
eggie57-Oct-07 20:43
eggie57-Oct-07 20:43 
QuestionProblem in uplod File through FTP Pin
pritesh_patel7-Oct-07 19:33
pritesh_patel7-Oct-07 19:33 
I am working on windows application with c#.net .
I am using FTPwebreuqest class for upload file on ftp.it works fine when there is no proxy between application and internet. but it doesn't work in proxy.

FtpWebRequest reqFTP;
if i use reqFTP.Proxy=new webproxy("proxyservername",port);
then it will display error message "FTP command doen't support in HTTP proxy".

my code is like this




FtpWebRequest reqFTP;
reqFTP = (FtpWebRequest)FtpWebRequest.Create("ftp://uri");

reqFTP.Credentials = new NetworkCredential("username", "pwd");

reqFTP.KeepAlive = false;

reqFTP.Method = WebRequestMethods.Ftp.UploadFile;
reqFTP.UseBinary = true;
reqFTP.UsePassive = true;
int buffLength = 2048;

byte[] buff = new byte[buffLength];
int contentLen;

FileStream fs = fileInf.OpenRead();

Stream strm = reqFTP.GetRequestStream();

contentLen = fs.Read(buff, 0, buffLength);

while (contentLen != 0)
{
strm.Write(buff, 0, contentLen);
contentLen = fs.Read(buff, 0, buffLength);
prbUpload.Value += contentLen;
}

strm.Close();
fs.Close();


Any one help me about proxy settings in FTPwebrequest?


Pritesh
AnswerRe: Problem in uplod File through FTP Pin
Nokoff8-Oct-07 2:31
Nokoff8-Oct-07 2:31 
QuestionRe: Problem in uplod File through FTP Pin
pritesh_patel10-Oct-07 20:35
pritesh_patel10-Oct-07 20:35 
Questioncopy column values from one table to another Pin
Glen Harvy7-Oct-07 19:05
Glen Harvy7-Oct-07 19:05 
AnswerRe: copy column values from one table to another Pin
il_masacratore7-Oct-07 21:17
il_masacratore7-Oct-07 21:17 
GeneralRe: copy column values from one table to another Pin
Glen Harvy7-Oct-07 22:32
Glen Harvy7-Oct-07 22:32 
GeneralRe: copy column values from one table to another Pin
il_masacratore8-Oct-07 0:02
il_masacratore8-Oct-07 0:02 
GeneralRe: copy column values from one table to another Pin
Glen Harvy8-Oct-07 1:30
Glen Harvy8-Oct-07 1:30 
GeneralRe: copy column values from one table to another Pin
Andrei Ungureanu8-Oct-07 1:39
Andrei Ungureanu8-Oct-07 1:39 
QuestionExchange Server Pin
M. J. Jaya Chitra7-Oct-07 18:50
M. J. Jaya Chitra7-Oct-07 18:50 
QuestionProblem While Writing To A Text File Pin
rowdykuttan7-Oct-07 15:37
rowdykuttan7-Oct-07 15:37 
AnswerRe: Problem While Writing To A Text File Pin
Christian Graus7-Oct-07 15:56
protectorChristian Graus7-Oct-07 15:56 
GeneralRe: Problem While Writing To A Text File Pin
rowdykuttan7-Oct-07 16:06
rowdykuttan7-Oct-07 16:06 
GeneralRe: Problem While Writing To A Text File Pin
Christian Graus7-Oct-07 16:16
protectorChristian Graus7-Oct-07 16:16 
QuestionGet File Executable Header Pin
Patricio Tapia7-Oct-07 11:49
Patricio Tapia7-Oct-07 11:49 
AnswerRe: Get File Executable Header Pin
Anthony Mushrow7-Oct-07 14:36
professionalAnthony Mushrow7-Oct-07 14:36 
QuestionHow to create multiple instances of images. Please help Pin
Matt Cavanagh7-Oct-07 11:45
Matt Cavanagh7-Oct-07 11:45 
AnswerRe: How to create multiple instances of images. Please help Pin
Christian Graus7-Oct-07 12:00
protectorChristian Graus7-Oct-07 12:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.