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

Joined
Jan 23, 2009
Messages
3
Reaction score
0
Hi,

I've got a simple application, which I'm trying to open a specific web page, but get an exception. I've had to amend the way the address is constructed to allow posting it on this forum. :-(

Dim strStart As String = "ht"
Dim strMiddle As String = "tp://w"
Dim strend As String = "ww.lda.gov.uk"
Dim hrwHttpWebRequest As HttpWebRequest = WebRequest.Create(strStart & strmiddle & strend)
hrwHttpWebRequest.GetResponse()
the exception is "The remote server returned an error: (500) Internal Server Error."

Does anyone have any ideas as to why this could be happening? If I open the page in IE, it opens fine. I've also tried a utility called GetHTTP and that works also

Regards

Bobby
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top