Click here to Skip to main content
16,005,389 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: need help Pin
Christian Graus22-Feb-08 16:33
protectorChristian Graus22-Feb-08 16:33 
GeneralRe: need help Pin
pandapatin22-Feb-08 16:40
pandapatin22-Feb-08 16:40 
GeneralRe: need help Pin
Christian Graus22-Feb-08 16:53
protectorChristian Graus22-Feb-08 16:53 
GeneralRe: need help Pin
pandapatin22-Feb-08 17:19
pandapatin22-Feb-08 17:19 
QuestionIncreasing width of the scrollbar programmatically Pin
xbiplav22-Feb-08 7:43
xbiplav22-Feb-08 7:43 
GeneralRe: Increasing width of the scrollbar programmatically Pin
Dave Kreskowiak22-Feb-08 9:12
mveDave Kreskowiak22-Feb-08 9:12 
GeneralRe: Increasing width of the scrollbar programmatically Pin
xbiplav22-Feb-08 11:09
xbiplav22-Feb-08 11:09 
QuestionUploading file problem [modified] Pin
Darshon22-Feb-08 5:18
Darshon22-Feb-08 5:18 
Hi everyone,

I'm trying to upload an *.xml file to my server and this is the code I'm using. The problem I have is that I get a 403 error every time, even though my folder permissions are correct and my authentications are correct as well. Just wondering if I'm doing something wrong with my code.

If File.Exists("C:\Documents and Settings\Denis\Desktop\GetFileTest\test.xml") Then
            Dim remoteUri As String = "http://www.site.com/folder/"
            Dim fileName As String = "C:\Documents and Settings\Denis\Desktop\GetFileTest\test.xml"
            ' Create a new WebClient instance.
            Dim myWebClient As New WebClient
            myWebClient.Credentials = New NetworkCredential("username", "password", "http://www.site.com/")
            Try
                ' The UploadFile() method uploads the current file to the Web resource-system folder.
                myWebClient.UploadFile(remoteUri, fileName)
                Label.Text = "Done!"
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
     Else
         Label.Text = "No Go!"
     End If


Thanks for any help
~D~

modified on Friday, February 22, 2008 11:33 AM

GeneralRe: Uploading file problem Pin
Dave Kreskowiak22-Feb-08 6:16
mveDave Kreskowiak22-Feb-08 6:16 
GeneralRe: Uploading file problem Pin
Darshon22-Feb-08 15:08
Darshon22-Feb-08 15:08 
GeneralRemote Sql Server Connection Pin
Bismark Appah22-Feb-08 2:53
Bismark Appah22-Feb-08 2:53 
GeneralRe: Remote Sql Server Connection Pin
Dave Kreskowiak22-Feb-08 3:35
mveDave Kreskowiak22-Feb-08 3:35 
JokeRe: Remote Sql Server Connection Pin
Hong Han24-Feb-08 0:19
Hong Han24-Feb-08 0:19 
Generalschedule Email sending in ASP Pin
Jamman22-Feb-08 1:34
Jamman22-Feb-08 1:34 
GeneralRe: schedule Email sending in ASP Pin
Steven J Jowett22-Feb-08 1:42
Steven J Jowett22-Feb-08 1:42 
QuestionWhy are they still using VB6? Pin
Steven J Jowett22-Feb-08 1:18
Steven J Jowett22-Feb-08 1:18 
GeneralRe: Why are they still using VB6? Pin
Colin Angus Mackay22-Feb-08 2:13
Colin Angus Mackay22-Feb-08 2:13 
GeneralRe: Why are they still using VB6? Pin
Steven J Jowett22-Feb-08 2:35
Steven J Jowett22-Feb-08 2:35 
GeneralRe: Why are they still using VB6? Pin
Dave Kreskowiak22-Feb-08 2:49
mveDave Kreskowiak22-Feb-08 2:49 
GeneralRe: Why are they still using VB6? Pin
Paul Conrad22-Feb-08 12:10
professionalPaul Conrad22-Feb-08 12:10 
GeneralRe: Why are they still using VB6? Pin
darkelv22-Feb-08 2:49
darkelv22-Feb-08 2:49 
GeneralRe: Why are they still using VB6? Pin
Steven J Jowett22-Feb-08 3:56
Steven J Jowett22-Feb-08 3:56 
GeneralRe: Why are they still using VB6? Pin
Dave Kreskowiak22-Feb-08 4:27
mveDave Kreskowiak22-Feb-08 4:27 
GeneralRe: Why are they still using VB6? Pin
darkelv22-Feb-08 4:34
darkelv22-Feb-08 4:34 
GeneralRe: Why are they still using VB6? Pin
Steven J Jowett22-Feb-08 7:54
Steven J Jowett22-Feb-08 7:54 

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.