cError 500 from DASP site using Visual Basic call

Discussion in 'Visual Studio' started by cgwp, Feb 19, 2012.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,
    I am trying to parse a string from a VB.net app. This is pretty standard code that works well for other sites.

    Dim URL As String = "http://www.canadiangreatwarproject.com"
    ' URL = "http://www.google.com"
    Dim request As HttpWebRequest = WebRequest.Create(URL)
    Dim response As HttpWebResponse
    Try
    response = request.GetResponse()
    Catch e As Exception
    MsgBox(e.Message)
    Exit Function
    End Try

    If I uncomment the pointer to google it works fine
    The call to my DASP site fails with Error 500, internal server error

    Of course, this worked just fine last night ...

    Any help would be appreciated
    Thanks
    marc
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    500 error is a generic server error. It should contain further details as to why the page failed.

    Are you using IE? if so, try disable "Friendly HTTP error"
     
  3. Hi Bruce,
    I'm not getting it from a web page, but from a VB app that is using HttpWebRequest/HttpWebResponse to get data from the page. The 500 error was what was returned by the error object. I'm not sure how to get more detailed error information from a VB app.

    Thanks

    marc
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page