Click here to Skip to main content
15,912,207 members
Home / Discussions / C#
   

C#

 
AnswerRe: Session Probs..., Pin
Pete O'Hanlon26-Oct-07 0:27
mvePete O'Hanlon26-Oct-07 0:27 
GeneralRe: Session Probs..., Pin
Member 387988126-Oct-07 19:40
Member 387988126-Oct-07 19:40 
GeneralRe: Session Probs..., Pin
Paul Conrad27-Oct-07 12:27
professionalPaul Conrad27-Oct-07 12:27 
QuestionSaving back ground image of a form Pin
sindhutiwari25-Oct-07 22:07
sindhutiwari25-Oct-07 22:07 
AnswerRe: Saving back ground image of a form Pin
N a v a n e e t h25-Oct-07 22:22
N a v a n e e t h25-Oct-07 22:22 
AnswerRe: Saving back ground image of a form Pin
Mohib Sheth25-Oct-07 23:40
Mohib Sheth25-Oct-07 23:40 
QuestionHow to update databinding property Pin
El'Cachubrey25-Oct-07 21:48
El'Cachubrey25-Oct-07 21:48 
QuestionProblem in uplod File through proxy to FTP Pin
pritesh_patel25-Oct-07 21:35
pritesh_patel25-Oct-07 21:35 
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 Patel

Question.Net remoting, registering two channel? how??? Pin
Ponzano Paolo25-Oct-07 21:14
Ponzano Paolo25-Oct-07 21:14 
AnswerRe: .Net remoting, registering two channel? how??? Pin
Ponzano Paolo25-Oct-07 22:07
Ponzano Paolo25-Oct-07 22:07 
QuestionResticting the files to opening by using WindowsService application [modified] Pin
Roney25-Oct-07 20:23
Roney25-Oct-07 20:23 
Questionportability of user control : x64 platform Pin
Nadia Monalisa25-Oct-07 20:01
Nadia Monalisa25-Oct-07 20:01 
AnswerRe: portability of user control : x64 platform Pin
N a v a n e e t h25-Oct-07 20:13
N a v a n e e t h25-Oct-07 20:13 
GeneralRe: portability of user control : x64 platform Pin
Nadia Monalisa25-Oct-07 22:34
Nadia Monalisa25-Oct-07 22:34 
GeneralRe: portability of user control : x64 platform Pin
N a v a n e e t h25-Oct-07 22:51
N a v a n e e t h25-Oct-07 22:51 
QuestionHelpRequested event Pin
Hans Ruck25-Oct-07 19:41
Hans Ruck25-Oct-07 19:41 
AnswerRe: HelpRequested event Pin
N a v a n e e t h25-Oct-07 20:22
N a v a n e e t h25-Oct-07 20:22 
GeneralRe: HelpRequested event Pin
Hans Ruck25-Oct-07 20:31
Hans Ruck25-Oct-07 20:31 
GeneralRe: HelpRequested event Pin
N a v a n e e t h25-Oct-07 20:37
N a v a n e e t h25-Oct-07 20:37 
GeneralRe: HelpRequested event Pin
Hans Ruck25-Oct-07 20:44
Hans Ruck25-Oct-07 20:44 
GeneralRe: HelpRequested event Pin
N a v a n e e t h25-Oct-07 20:46
N a v a n e e t h25-Oct-07 20:46 
GeneralRe: HelpRequested event Pin
Hans Ruck25-Oct-07 20:56
Hans Ruck25-Oct-07 20:56 
GeneralRe: HelpRequested event Pin
N a v a n e e t h25-Oct-07 21:16
N a v a n e e t h25-Oct-07 21:16 
GeneralRe: HelpRequested event Pin
Hans Ruck25-Oct-07 21:25
Hans Ruck25-Oct-07 21:25 
QuestionCalculate the TotalMonths difference between two DateTime Pin
Patrick Klug25-Oct-07 17:43
Patrick Klug25-Oct-07 17:43 

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.