Click here to Skip to main content
15,891,905 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRight Click Menu Pin
led12317-Sep-09 5:37
led12317-Sep-09 5:37 
Questionhow to format [modified] Pin
rbjanaki17-Sep-09 3:05
rbjanaki17-Sep-09 3:05 
AnswerRe: how to format Pin
Luc Pattyn17-Sep-09 4:32
sitebuilderLuc Pattyn17-Sep-09 4:32 
GeneralRe: how to format Pin
rbjanaki17-Sep-09 5:19
rbjanaki17-Sep-09 5:19 
GeneralRe: how to format Pin
Luc Pattyn17-Sep-09 5:34
sitebuilderLuc Pattyn17-Sep-09 5:34 
AnswerRe: how to format Pin
Ian Shlasko17-Sep-09 7:35
Ian Shlasko17-Sep-09 7:35 
GeneralRe: how to format Pin
rbjanaki17-Sep-09 7:52
rbjanaki17-Sep-09 7:52 
QuestionLost on how you would upload a file in VB.net Pin
DJ Matthews17-Sep-09 2:42
DJ Matthews17-Sep-09 2:42 
Hi all,
I've been researching how to upload a file to a web server. I've found lots of articles about it (most here at CodeProject), but I'm having some problems with my code. Everytime I run the code I get the following error:

The remote server returned an error: (404) Not Found.


My Code:
Dim responseArray As Byte()
Try
    Dim WC As New System.Net.WebClient
    responseArray = WC.UploadFile("http://someserver/Uploads/upload.aspx", "POST",  "\myfile.doc")
    txtResponce.Text = "Check the file at " + Encoding.ASCII.GetString(responseArray)
Catch ex As Exception
    MsgBox(ex.ToString)
End Try


What I don't understand is what "upload.aspx" is there for. There is never any code to go with it, so I'm not sure what it's there for.(MSDN has this same example, no code to upload.aspx). I've taken the "upload.aspx" out and I get the same error.


I've given the ASPNET and ISS user accounts read/write access to the folder, so I'm sure it's not a permission problem. Can ANYONE explain what I'm doing wrong?
AnswerRe: Lost on how you would upload a file in VB.net Pin
EliottA17-Sep-09 5:39
EliottA17-Sep-09 5:39 
GeneralRe: Lost on how you would upload a file in VB.net Pin
DJ Matthews17-Sep-09 6:20
DJ Matthews17-Sep-09 6:20 
QuestionProcess Object saying "Access Denied" Pin
specialdreamsin17-Sep-09 1:37
specialdreamsin17-Sep-09 1:37 
AnswerRe: Process Object saying "Access Denied" [modified] Pin
tosch17-Sep-09 2:15
tosch17-Sep-09 2:15 
QuestionDate problem Pin
rmedo17-Sep-09 0:16
rmedo17-Sep-09 0:16 
AnswerRe: Date problem Pin
Ashfield17-Sep-09 1:41
Ashfield17-Sep-09 1:41 
QuestionProblem in using .selection.type Pin
Padma N16-Sep-09 19:54
Padma N16-Sep-09 19:54 
AnswerRe: Problem in using .selection.type Pin
Johan Hakkesteegt16-Sep-09 20:57
Johan Hakkesteegt16-Sep-09 20:57 
GeneralRe: Problem in using .selection.type Pin
Padma N16-Sep-09 21:20
Padma N16-Sep-09 21:20 
GeneralRe: Problem in using .selection.type Pin
Johan Hakkesteegt16-Sep-09 21:44
Johan Hakkesteegt16-Sep-09 21:44 
QuestionVisual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 15:00
Bob Beaubien16-Sep-09 15:00 
AnswerRe: Visual Basic KeyBoard Pin
Christian Graus16-Sep-09 15:09
protectorChristian Graus16-Sep-09 15:09 
GeneralRe: Visual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 15:16
Bob Beaubien16-Sep-09 15:16 
GeneralRe: Visual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 15:25
Bob Beaubien16-Sep-09 15:25 
GeneralRe: Visual Basic KeyBoard Pin
Christian Graus16-Sep-09 15:29
protectorChristian Graus16-Sep-09 15:29 
GeneralRe: Visual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 15:37
Bob Beaubien16-Sep-09 15:37 
GeneralRe: Visual Basic KeyBoard Pin
N a v a n e e t h16-Sep-09 15:42
N a v a n e e t h16-Sep-09 15:42 

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.