locked
The remote server returned an error: (500) Internal Server Error. RRS feed

  • Question

  • Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.Net.WebException: The remote server returned an error: (500) Internal Server Error.

    Source Error: 

    Line 63:         }
    Line 64:         //Gets the response
    Line 65:         WebResponse response = req.GetResponse();
    Line 66:         //Writes the Response
    Line 67:         Stream responseStream = response.GetResponseStream();
    • Moved by Carl Cai Monday, July 28, 2014 2:19 AM (from vb.net)more related to suggested forum
    Friday, July 25, 2014 1:09 PM

Answers

  • Looks like C# code and you've posted to the Visual Basic forum.

    Anyway, an error 500 means that there is a problem accessing the resource in the web request. There could be many reasons for this so I would verify that the web request is correct first and if it continues to fail then the resource (web page?) needs to be fixed before your code will function.

    Visual C# forum


    Paul ~~~~ Microsoft MVP (Visual Basic)

    • Proposed as answer by Carl Cai Monday, July 28, 2014 2:17 AM
    • Marked as answer by Just Karl Sunday, August 3, 2014 3:48 PM
    Friday, July 25, 2014 1:24 PM

All replies

  • What is your question?  Just pasting a screen-capture of an error message is pointless.
    Friday, July 25, 2014 1:11 PM
  • Looks like C# code and you've posted to the Visual Basic forum.

    Anyway, an error 500 means that there is a problem accessing the resource in the web request. There could be many reasons for this so I would verify that the web request is correct first and if it continues to fail then the resource (web page?) needs to be fixed before your code will function.

    Visual C# forum


    Paul ~~~~ Microsoft MVP (Visual Basic)

    • Proposed as answer by Carl Cai Monday, July 28, 2014 2:17 AM
    • Marked as answer by Just Karl Sunday, August 3, 2014 3:48 PM
    Friday, July 25, 2014 1:24 PM