Click here to Skip to main content
16,019,768 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: hi Pin
just3ala231-Oct-06 20:36
just3ala231-Oct-06 20:36 
AnswerRe: hi Pin
PavanPareta31-Oct-06 21:41
PavanPareta31-Oct-06 21:41 
AnswerRe: hi Pin
Rahithi1-Nov-06 5:37
Rahithi1-Nov-06 5:37 
QuestionUnusual Map Path Question... Pin
code-frog31-Oct-06 11:46
professionalcode-frog31-Oct-06 11:46 
QuestionAdditional content Pin
whatever10131-Oct-06 10:28
whatever10131-Oct-06 10:28 
QuestionInsert data in database via Visual Studio (VB) [modified] Pin
TazzT31-Oct-06 9:56
TazzT31-Oct-06 9:56 
AnswerRe: Insert data in database via Visual Studio (VB) Pin
_AK_31-Oct-06 17:48
_AK_31-Oct-06 17:48 
QuestionFTPWebRequest issues Pin
rrlevron31-Oct-06 5:23
rrlevron31-Oct-06 5:23 
I am having trouble ftp'ing a file from my local hard drive (ftptest.txt) to a mainframe system. I can command-line ftp the file fine, but I can't seem to ftp from ASP.NET 2.0. I keep getting error:
"The remote server returned an error: (501) Syntax error in parameters or arguments.".

here is my code:
' Get the object used to communicate with the server.
Dim request As FtpWebRequest = FtpWebRequest.Create("ftp://ibmmain/")

request.Method = WebRequestMethods.Ftp.UploadFile

' This example assumes the FTP site uses anonymous logon.
request.Credentials = New NetworkCredential("rme", "geac1", "ibmmain")

' Copy the contents of the file to the request stream.
Dim sourceStream As StreamReader = New StreamReader("C:\RME.LGNGEAC.EXTRACT")
Dim fileContents As Byte() = Encoding.UTF8.GetBytes(sourceStream.ReadToEnd())
sourceStream.Close()
request.ContentLength = fileContents.Length

Dim requestStream As Stream = request.GetRequestStream()


Any help would be appreciated.

regards,
RLevron


Questionhow to connect to DB dynamically in ASP .net Pin
Meena T Shivaram31-Oct-06 5:18
Meena T Shivaram31-Oct-06 5:18 
AnswerRe: how to connect to DB dynamically in ASP .net Pin
wEb GuRu...31-Oct-06 5:58
wEb GuRu...31-Oct-06 5:58 
GeneralRe: how to connect to DB dynamically in ASP .net Pin
Meena T Shivaram31-Oct-06 10:28
Meena T Shivaram31-Oct-06 10:28 
Questionbulk update Pin
karanba31-Oct-06 5:08
karanba31-Oct-06 5:08 
AnswerRe: bulk update Pin
just3ala231-Oct-06 20:30
just3ala231-Oct-06 20:30 
QuestionLocking Client Computer through ASP.Net Pin
aseef31-Oct-06 3:50
aseef31-Oct-06 3:50 
QuestionLogin Control and Roles.... Pin
dbrook00731-Oct-06 3:49
dbrook00731-Oct-06 3:49 
Questioncustom validator Pin
gus_br31-Oct-06 3:43
gus_br31-Oct-06 3:43 
AnswerRe: custom validator Pin
ednrgc31-Oct-06 5:33
ednrgc31-Oct-06 5:33 
GeneralRe: custom validator Pin
gus_br31-Oct-06 6:44
gus_br31-Oct-06 6:44 
AnswerRe: custom validator Pin
P A N K A J31-Oct-06 22:45
P A N K A J31-Oct-06 22:45 
Questionattibutes.add Pin
rkmoray31-Oct-06 2:33
rkmoray31-Oct-06 2:33 
AnswerRe: attibutes.add Pin
just3ala231-Oct-06 20:32
just3ala231-Oct-06 20:32 
QuestionASP.net Reset Button Pin
wEb GuRu...31-Oct-06 2:27
wEb GuRu...31-Oct-06 2:27 
AnswerRe: ASP.net Reset Button Pin
ednrgc31-Oct-06 3:50
ednrgc31-Oct-06 3:50 
GeneralProblem not yet solved Pin
wEb GuRu...31-Oct-06 5:48
wEb GuRu...31-Oct-06 5:48 
GeneralRe: Problem not yet solved Pin
ednrgc31-Oct-06 5:57
ednrgc31-Oct-06 5:57 

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.