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

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-04-30T11:54:43Z Indexed on 2010/04/30 11:57 UTC
Read the original article Hit count: 344

Filed under:
|
|
|

I am running this piece of code to get the source of my webpage.

The problem is why this function returns 404 error?

Private Function getPageSource(ByVal URL As String) As String
    Dim webClient As New System.Net.WebClient()
    Dim strSource As String = webClient.DownloadString(URL)
    webClient.Dispose()
    Return strSource
End Function

© Stack Overflow or respective owner

Related posts about 404

Related posts about http-404